1 //===---------------------- catch_array_01.cpp ----------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // Can you have a catch clause of array type that catches anything?
16 typedef char Array
[4];
17 Array a
= {'H', 'i', '!', 0};
20 throw a
; // converts to char*
23 catch (Array
& b
) // can't catch char*