diff options
Diffstat (limited to 'clang/test/CodeGen/boolassign.c')
-rw-r--r-- | clang/test/CodeGen/boolassign.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGen/boolassign.c b/clang/test/CodeGen/boolassign.c new file mode 100644 index 0000000..8c56319 --- /dev/null +++ b/clang/test/CodeGen/boolassign.c @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 %s -emit-llvm -o %t + +int testBoolAssign(void) { + int ss; + if ((ss = ss && ss)) {} + return 1; +} |