diff options
Diffstat (limited to 'test/CodeGen/debug-info-embed-source.c')
-rw-r--r-- | test/CodeGen/debug-info-embed-source.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGen/debug-info-embed-source.c b/test/CodeGen/debug-info-embed-source.c new file mode 100644 index 0000000000000..3b607b61f7d7e --- /dev/null +++ b/test/CodeGen/debug-info-embed-source.c @@ -0,0 +1,5 @@ +// RUN: %clang_cc1 -debug-info-kind=limited -emit-llvm %p/Inputs/debug-info-embed-source.c -o - | FileCheck %s --check-prefix=NOEMBED +// RUN: %clang_cc1 -gembed-source -debug-info-kind=limited -emit-llvm %p/Inputs/debug-info-embed-source.c -o - | FileCheck %s --check-prefix=EMBED + +// NOEMBED-NOT: !DIFile({{.*}}source: +// EMBED: !DIFile({{.*}}source: "void foo() { }\0A" |