1 // RUN: %clang_cc1 -fcxx-exceptions -fexceptions -fsyntax-only -verify %s
7 struct StringTrait
< const char[ N
] > {
9 static const MissingIntT length
= N
- 1; // expected-error {{unknown type name 'MissingIntT'}}
15 String(T
& str
, typename StringTrait
<T
>::CharType
= 0);
21 Exception(String
const&);
25 throw Exception("some error"); // expected-error {{functional-style cast from 'const char[11]' to 'Exception' is not allowed}}