summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-c-test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-c-test')
-rw-r--r--llvm/tools/llvm-c-test/debuginfo.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/tools/llvm-c-test/debuginfo.c b/llvm/tools/llvm-c-test/debuginfo.c
index 411c4958d8c..0c3410d949e 100644
--- a/llvm/tools/llvm-c-test/debuginfo.c
+++ b/llvm/tools/llvm-c-test/debuginfo.c
@@ -36,6 +36,19 @@ int llvm_test_dibuilder(void) {
"/test/include/llvm-c-test.h", 27,
"", 0);
+ LLVMMetadataRef OtherModule =
+ LLVMDIBuilderCreateModule(DIB, CompileUnit,
+ "llvm-c-test-import", 18,
+ "", 0,
+ "/test/include/llvm-c-test-import.h", 34,
+ "", 0);
+ LLVMMetadataRef ImportedModule =
+ LLVMDIBuilderCreateImportedModuleFromModule(DIB, Module, OtherModule,
+ File, 42);
+ LLVMMetadataRef AliasImportedModule =
+ LLVMDIBuilderCreateImportedModuleFromAlias(DIB, Module, ImportedModule,
+ File, 42);
+
LLVMMetadataRef Int64Ty =
LLVMDIBuilderCreateBasicType(DIB, "Int64", 5, 64, 0);
LLVMMetadataRef GlobalVarValueExpr =
OpenPOWER on IntegriCloud