Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / cfguardtable.c
blobfe65d2a81c23383e6d14d20b84e8d0c0b0de2bde
1 // RUN: %clang_cc1 -cfguard-no-checks -emit-llvm %s -o - | FileCheck %s -check-prefix=CFGUARDNOCHECKS
2 // RUN: %clang_cc1 -cfguard -emit-llvm %s -o - | FileCheck %s -check-prefix=CFGUARD
3 // RUN: %clang_cc1 -ehcontguard -emit-llvm %s -o - | FileCheck %s -check-prefix=EHCONTGUARD
4 // RUN: %clang_cc1 -fms-kernel -emit-llvm %s -o - | FileCheck %s -check-prefix=MS-KERNEL
6 void f(void) {}
8 // Check that the cfguard metadata flag gets correctly set on the module.
9 // CFGUARDNOCHECKS: !"cfguard", i32 1}
10 // CFGUARD: !"cfguard", i32 2}
11 // EHCONTGUARD: !"ehcontguard", i32 1}
12 // MS-KERNEL: !"ms-kernel", i32 1}