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