Eric Christopher | 2368b6a | 2011-08-20 00:09:39 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -emit-llvm -o /dev/null |
2 | |||||
3 | // This is PR421 | ||||
4 | |||||
5 | struct Strongbad { | ||||
6 | Strongbad(const char *str ); | ||||
7 | ~Strongbad(); | ||||
8 | operator const char *() const; | ||||
9 | }; | ||||
10 | |||||
11 | void TheCheat () { | ||||
12 | Strongbad foo(0); | ||||
13 | Strongbad dirs[] = { Strongbad(0) + 1}; | ||||
14 | } |