aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/typeof_unqual.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/typeof_unqual.cpp')
-rw-r--r--clang/test/SemaCXX/typeof_unqual.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/typeof_unqual.cpp b/clang/test/SemaCXX/typeof_unqual.cpp
new file mode 100644
index 0000000..335e579
--- /dev/null
+++ b/clang/test/SemaCXX/typeof_unqual.cpp
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+typeof_unqual(int) u = 12; // expected-error {{expected function body after function declarator}}
+__typeof_unqual(int) _u = 12;
+__typeof_unqual__(int) __u = 12;