aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/2003-08-17-DeadCodeShortCircuit.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/2003-08-17-DeadCodeShortCircuit.c')
-rw-r--r--test/CodeGen/2003-08-17-DeadCodeShortCircuit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/2003-08-17-DeadCodeShortCircuit.c b/test/CodeGen/2003-08-17-DeadCodeShortCircuit.c
new file mode 100644
index 000000000000..031b530672a3
--- /dev/null
+++ b/test/CodeGen/2003-08-17-DeadCodeShortCircuit.c
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -x c %s -emit-llvm -o /dev/null
+
+int test(_Bool pos, _Bool color) {
+ return 0;
+ return (pos && color);
+}