diff options
Diffstat (limited to 'test/Modules/module-impl-with-link.c')
| -rw-r--r-- | test/Modules/module-impl-with-link.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Modules/module-impl-with-link.c b/test/Modules/module-impl-with-link.c new file mode 100644 index 0000000000000..5e5ca83aafd66 --- /dev/null +++ b/test/Modules/module-impl-with-link.c @@ -0,0 +1,7 @@ +// RUN: rm -rf %t +// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -fmodule-name=Clib %s -I %S/Inputs/module-impl-with-link -emit-llvm -o - +#include "foo.h" +// CHECK: !{{[0-9]+}} = !{i32 6, !"Linker Options", ![[LINK_OPTIONS:[0-9]+]]} +// Make sure we don't generate linker option for module Clib since this TU is +// an implementation of Clib. +// CHECK: ![[LINK_OPTIONS]] = !{} |
