diff options
Diffstat (limited to 'test/CodeGen/cfguardtable.c')
-rw-r--r-- | test/CodeGen/cfguardtable.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/cfguardtable.c b/test/CodeGen/cfguardtable.c new file mode 100644 index 0000000000000..964929261297b --- /dev/null +++ b/test/CodeGen/cfguardtable.c @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 -cfguard -emit-llvm %s -o - | FileCheck %s + +void f() {} + +// Check that the cfguardtable metadata flag gets set on the module. +// CHECK: !"cfguardtable", i32 1} |