aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/top-level-semi-cxx0x.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/top-level-semi-cxx0x.cpp')
-rw-r--r--test/Parser/top-level-semi-cxx0x.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Parser/top-level-semi-cxx0x.cpp b/test/Parser/top-level-semi-cxx0x.cpp
new file mode 100644
index 000000000000..e83fd9e8dbd7
--- /dev/null
+++ b/test/Parser/top-level-semi-cxx0x.cpp
@@ -0,0 +1,15 @@
+// RUN: clang-cc -fsyntax-only -pedantic -std=c++0x -verify %s
+
+void foo();
+
+void bar() { };
+
+void wibble();
+
+;
+
+namespace Blah {
+ void f() { };
+
+ void g();
+}