diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-04-22 00:21:21 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-04-22 00:21:21 +0000 |
commit | ba48d05c9c43dca8efa49d70ad3331fdcd6e2b3a (patch) | |
tree | 80672f150a0a2fecf51b4780f4813fc894ec906b | |
parent | 0c8c455faad5623e2f93fd02e09c2b949d8be8c8 (diff) |
Test PCH support for VLAs
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69758 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/PCH/stmts.h | 3 | ||||
-rw-r--r-- | test/PCH/types.c | 2 | ||||
-rw-r--r-- | test/PCH/types.h | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/test/PCH/stmts.h b/test/PCH/stmts.h index 367a2837cf..4267e2c2b3 100644 --- a/test/PCH/stmts.h +++ b/test/PCH/stmts.h @@ -64,6 +64,9 @@ int f1(int x) { break; } + // variable-length array + int array[x * 17 + 3]; + return x*2; } diff --git a/test/PCH/types.c b/test/PCH/types.c index 6463eb1d51..c111c9ea74 100644 --- a/test/PCH/types.c +++ b/test/PCH/types.c @@ -36,7 +36,7 @@ five_ints fvi = { 1, 2, 3, 4, 5 }; float_array fa1 = { 1, 2, 3 }; float_array fa2 = { 1, 2, 3, 4, 5, 6, 7, 8 }; -// FIXME: TYPE_VARIABLE_ARRAY +// TYPE_VARIABLE_ARRAY in stmts.[ch] // TYPE_VECTOR float4 f4 = { 1.0, 2.0, 3.0, 4.0 }; diff --git a/test/PCH/types.h b/test/PCH/types.h index fbf83c9ce8..df9f5c8607 100644 --- a/test/PCH/types.h +++ b/test/PCH/types.h @@ -20,7 +20,7 @@ typedef int five_ints[5]; // TYPE_INCOMPLETE_ARRAY typedef float float_array[]; -// FIXME: TYPE_VARIABLE_ARRAY +// TYPE_VARIABLE_ARRAY in stmts.[ch] // TYPE_VECTOR typedef float float4 __attribute__((vector_size(16))); |