diff options
Diffstat (limited to 'clang/test/Sema/implicit-cast.c')
-rw-r--r-- | clang/test/Sema/implicit-cast.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Sema/implicit-cast.c b/clang/test/Sema/implicit-cast.c new file mode 100644 index 0000000..088b195 --- /dev/null +++ b/clang/test/Sema/implicit-cast.c @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 -fsyntax-only %s + +static char *test1(int cf) { + return cf ? "abc" : 0; +} +static char *test2(int cf) { + return cf ? 0 : "abc"; +} |