summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/fold-const-declref.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/fold-const-declref.c')
-rw-r--r--test/CodeGen/fold-const-declref.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/fold-const-declref.c b/test/CodeGen/fold-const-declref.c
index 5a7ba8e..f49611c 100644
--- a/test/CodeGen/fold-const-declref.c
+++ b/test/CodeGen/fold-const-declref.c
@@ -1,9 +1,9 @@
-// RUN: %clang_cc1 -verify -emit-llvm-only
+// RUN: %clang_cc1 -verify -emit-llvm-only %s
// PR7242: Check that this doesn't crash.
int main(void)
{
int __negative = 1;
const int __max = __negative && 0 ;
- __max / 0;
+ __max / 0; // expected-warning{{expression result unused}} expected-warning{{division by zero is undefined}}
}
OpenPOWER on IntegriCloud