diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2012-01-25 05:04:17 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2012-01-25 05:04:17 +0000 |
commit | 5995489d27065a018e209d431cd26ea592642f2a (patch) | |
tree | 0ae0520a513fa60f09d45270aebb7d534883236e /clang/test/CodeGenCXX/conditional-gnu-ext.cpp | |
parent | 5bcf070e68b6548cbe316efb07faba45e94447c4 (diff) | |
download | llvm-5995489d27065a018e209d431cd26ea592642f2a.zip llvm-5995489d27065a018e209d431cd26ea592642f2a.tar.gz llvm-5995489d27065a018e209d431cd26ea592642f2a.tar.bz2 |
Fix a crash for an edge case of the GNU ?: extension.
llvm-svn: 148923
Diffstat (limited to 'clang/test/CodeGenCXX/conditional-gnu-ext.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/conditional-gnu-ext.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/conditional-gnu-ext.cpp b/clang/test/CodeGenCXX/conditional-gnu-ext.cpp index 46c5e7f..104a91d2 100644 --- a/clang/test/CodeGenCXX/conditional-gnu-ext.cpp +++ b/clang/test/CodeGenCXX/conditional-gnu-ext.cpp @@ -140,3 +140,11 @@ namespace test3 { } } + +namespace test4 { + // Make sure this doesn't crash. + void f() { + const int a = 10, b = 20; + const int *c = &(a ?: b); + } +} |