1 // RUN: %clang_cc1 -triple x86_64-apple-darwin %s -emit-llvm -o - | FileCheck %s --check-prefix=DEFAULT 2 // RUN: %clang_cc1 -triple x86_64-apple-darwin %s -emit-llvm -o - -fwrapv | FileCheck %s --check-prefix=DEFAULT 3 // RUN: %clang_cc1 -triple x86_64-apple-darwin %s -emit-llvm -o - -ftrapv | FileCheck %s --check-prefix=DEFAULT 4 // RUN: %clang_cc1 -triple x86_64-apple-darwin %s -emit-llvm -o - -fwrapv-pointer | FileCheck %s --check-prefix=FWRAPV-POINTER 5 6 void test(void) { 7 // -fwrapv-pointer should turn off inbounds for GEP's 8 extern int* P; 9 ++P; 10 // DEFAULT: getelementptr inbounds nuw i32, ptr 11 // FWRAPV-POINTER: getelementptr i32, ptr 12 } 13