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