| // RUN: %clang_cc1 -emit-llvm-only -verify %s |
| // Make sure this doesn't crash; the mangling doesn't matter because the name |
| static struct : S { } obj8; |
| // Make sure this doesn't crash; the mangling doesn't matter because the |
| // generated vtable/etc. aren't modifiable (although it would be nice for |
| // codesize to make it consistent inside inline functions). |
| static struct : S { } obj8; |
| // FIXME: We don't mangle the names of a or x correctly! |
| static struct { int a() { static int x; return ++x; } } obj; |
| int f3() { return f2(); } |
| typedef struct { int x; } *ptr; |
| // FIXME: We don't mangle the names of a or x correctly! |
| int a(ptr A::*memp) { static int x; return ++x; } |
| int f4() { return A().a(); } |