1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/FrontendC++/2003-08-21-EmptyClass.cpp

10 lines
171 B
C++
Raw Normal View History

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