diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2008-08-28 18:02:04 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2008-08-28 18:02:04 +0000 |
| commit | 3e1888e8bdd6a1b3ff45f2716b28741431fe64e7 (patch) | |
| tree | bae7daf0068aeaed4b94457845f801dbee5f848f /clang/test | |
| parent | a32affb9ba4e7e4b80381a6a9573bfd19b63d92c (diff) | |
| download | bcm5719-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.c | 5 |
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]); +} |

