llvm-mirror/test/FrontendC++/2003-08-21-EmptyClass.cpp

10 lines
168 B
C++
Raw Normal View History

// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
2004-11-06 22:29:57 +00:00
2003-08-22 04:31:24 +00:00
// This tests compilation of EMPTY_CLASS_EXPR's
2003-08-22 04:13:13 +00:00
struct empty {};
void foo(empty) {}
2003-08-22 04:13:13 +00:00
void bar() { foo(empty()); }