From: Douglas Gregor Date: Wed, 22 Apr 2009 00:21:21 +0000 (+0000) Subject: Test PCH support for VLAs X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba48d05c9c43dca8efa49d70ad3331fdcd6e2b3a;p=clang Test PCH support for VLAs git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69758 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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)));