aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC++/2003-09-30-CommaExprBug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC++/2003-09-30-CommaExprBug.cpp')
-rw-r--r--test/FrontendC++/2003-09-30-CommaExprBug.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/FrontendC++/2003-09-30-CommaExprBug.cpp b/test/FrontendC++/2003-09-30-CommaExprBug.cpp
new file mode 100644
index 0000000..afe470c
--- /dev/null
+++ b/test/FrontendC++/2003-09-30-CommaExprBug.cpp
@@ -0,0 +1,10 @@
+// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
+
+class Empty {};
+
+void foo(Empty E);
+
+void bar() {
+ foo(Empty());
+}
+