opnsense-src/test/FrontendC++/2003-08-21-EmptyClass.cpp

10 lines
168 B
C++
Raw Normal View History

2009-10-14 13:57:32 -04:00
// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
2009-06-02 13:52:33 -04:00
// This tests compilation of EMPTY_CLASS_EXPR's
struct empty {};
void foo(empty) {}
void bar() { foo(empty()); }