summaryrefslogtreecommitdiffstats
path: root/llvm/test/C++Frontend/2003-09-30-CommaExprBug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/C++Frontend/2003-09-30-CommaExprBug.cpp')
-rw-r--r--llvm/test/C++Frontend/2003-09-30-CommaExprBug.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/C++Frontend/2003-09-30-CommaExprBug.cpp b/llvm/test/C++Frontend/2003-09-30-CommaExprBug.cpp
new file mode 100644
index 00000000000..afe470cd11b
--- /dev/null
+++ b/llvm/test/C++Frontend/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());
+}
+
OpenPOWER on IntegriCloud