blob: f3d225e81a603289c625ccdf74d3e947f47e0d30 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001// RUN: %llvmgxx %s -S -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}