summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-08-28 18:02:04 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-08-28 18:02:04 +0000
commit3e1888e8bdd6a1b3ff45f2716b28741431fe64e7 (patch)
treebae7daf0068aeaed4b94457845f801dbee5f848f /clang/test
parenta32affb9ba4e7e4b80381a6a9573bfd19b63d92c (diff)
downloadbcm5719-llvm-3e1888e8bdd6a1b3ff45f2716b28741431fe64e7.tar.gz
bcm5719-llvm-3e1888e8bdd6a1b3ff45f2716b28741431fe64e7.zip
Fix double-free error with sizeof applied to VLA types.
- PR2727. Also, fix warning in CodeGenTypes for new BlockPointer type. llvm-svn: 55479
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Sema/PR2727.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Sema/PR2727.c b/clang/test/Sema/PR2727.c
new file mode 100644
index 00000000000..faf934d947a
--- /dev/null
+++ b/clang/test/Sema/PR2727.c
@@ -0,0 +1,5 @@
+int f (int x)
+{
+ // sizeof applied to a type should not delete the type.
+ return sizeof (int[x]);
+}
OpenPOWER on IntegriCloud