diff options
Diffstat (limited to 'test/CodeGen/debug-info-version.c')
-rw-r--r-- | test/CodeGen/debug-info-version.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/debug-info-version.c b/test/CodeGen/debug-info-version.c new file mode 100644 index 000000000000..3a74876de59b --- /dev/null +++ b/test/CodeGen/debug-info-version.c @@ -0,0 +1,8 @@ +// RUN: %clang -g -S -emit-llvm -o - %s | FileCheck %s +// RUN: %clang -S -emit-llvm -o - %s | FileCheck %s --check-prefix=NO_DEBUG +int main (void) { + return 0; +} + +// CHECK: metadata !{i32 1, metadata !"Debug Info Version", i32 1} +// NO_DEBUG-NOT: metadata !"Debug Info Version" |