diff options
Diffstat (limited to 'clang/test/CodeGen/integer-overflow.c')
-rw-r--r-- | clang/test/CodeGen/integer-overflow.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGen/integer-overflow.c b/clang/test/CodeGen/integer-overflow.c index 103cc8427bb..066ef895744 100644 --- a/clang/test/CodeGen/integer-overflow.c +++ b/clang/test/CodeGen/integer-overflow.c @@ -49,4 +49,12 @@ void test1() { // TRAPV: llvm.sadd.with.overflow.i32({{.*}}, i32 -1) // TRAPV_HANDLER: foo( --a; + + + // -fwrapv should turn off inbounds for GEP's, PR9256 + extern int* P; + ++P; + // DEFAULT: getelementptr inbounds i32* + // WRAPV: getelementptr i32* + // TRAPV: getelementptr inbounds i32* } |