aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/typedef-variable-type.c
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2008-02-17 00:59:11 +0000
committerEli Friedman <eli.friedman@gmail.com>2008-02-17 00:59:11 +0000
commitd3f2f79fedfef7cae818c55a1f3d7a8f5992e5a0 (patch)
treeb6b796ce7ee36fe3a7de84c9139a526d0fe5f17e /test/Sema/typedef-variable-type.c
parent19a1d7c646729eb858b15583e647262a22de3637 (diff)
Implemnt isVariablyModifiedType correctly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47233 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/typedef-variable-type.c')
-rw-r--r--test/Sema/typedef-variable-type.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Sema/typedef-variable-type.c b/test/Sema/typedef-variable-type.c
new file mode 100644
index 0000000000..3abca4314e
--- /dev/null
+++ b/test/Sema/typedef-variable-type.c
@@ -0,0 +1,3 @@
+// RUN: clang %s -verify -fsyntax-only -pedantic
+
+typedef int (*a)[!.0]; // expected-error{{variable length array declared outside of any function}}