This surfaced yesterday, when compiling test/Sema/cocoa.m on Leopard. Since this has nothing to do with ObjC, it's kind of bizarre this hasn't shown up before. I imagine Cocoa.h on Leopard may have changed recently? Thanks to Ted for localizing the bug and giving me a useful AST dump... llvm-svn: 43114
9 lines
144 B
C
9 lines
144 B
C
// RUN: clang -fsyntax-only %s
|
|
|
|
static char *test1(int cf) {
|
|
return cf ? "abc" : 0;
|
|
}
|
|
static char *test2(int cf) {
|
|
return cf ? 0 : "abc";
|
|
}
|