diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-01-27 08:43:38 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-01-27 08:43:38 +0000 |
commit | eb3a9b03ab3379185c8af2574272149a7f9a56c6 (patch) | |
tree | e88c0d5d260392f66f9937af4f0d8531001a19ba /clang/test/Parser/expressions.c | |
parent | f1ca7d3e02e0fb4d5fa6ed56459a31776e82a605 (diff) | |
download | bcm5719-llvm-eb3a9b03ab3379185c8af2574272149a7f9a56c6.tar.gz bcm5719-llvm-eb3a9b03ab3379185c8af2574272149a7f9a56c6.zip |
Fix for PR3418: make sure to handle the RHS of expressions starting with
__extension__. This sort of construct shows up in the gcc source code.
llvm-svn: 63100
Diffstat (limited to 'clang/test/Parser/expressions.c')
-rw-r--r-- | clang/test/Parser/expressions.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Parser/expressions.c b/clang/test/Parser/expressions.c index 3b47260c32f..29621f1975e 100644 --- a/clang/test/Parser/expressions.c +++ b/clang/test/Parser/expressions.c @@ -36,4 +36,8 @@ void test_sizeof(){ sizeof(arr)[0]; } +// PR3418 +int test_leading_extension() { + __extension__ (*(char*)0) = 1; +} |