blob: 5dbfa33e03c3c81a410c3fbd12520e5d8038c482 [file] [log] [blame]
Dan Gohmanfea1dd02009-08-25 15:38:29 +00001// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
Tanya Lattnerd13e0ae2004-11-06 22:29:57 +00002
Chris Lattner3bb49fb2003-08-22 04:31:24 +00003// This tests compilation of EMPTY_CLASS_EXPR's
Chris Lattnerd60770d2003-08-22 04:13:13 +00004
5struct empty {};
6
Chris Lattnerda228ef2003-08-22 04:36:12 +00007void foo(empty) {}
Chris Lattnerd60770d2003-08-22 04:13:13 +00008
9void bar() { foo(empty()); }