summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/linker-option.c
blob: b1b2ec461c89bd23a6599f67a844e30e902e2dd3 (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 %s --linker-option=/include:foo -triple i686-pc-win32 -emit-llvm -o - | FileCheck %s

// CHECK: !llvm.module.flags = !{{{.*}}}
// CHECK: !{{[0-9]+}} = !{i32 6, !"Linker Options", ![[link_opts:[0-9]+]]}
// CHECK: ![[link_opts]] = !{![[msvcrt:[0-9]+]]}
// CHECK: ![[msvcrt]] = !{!"/include:foo"}

int f();
OpenPOWER on IntegriCloud