[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenCXX / apple-kext-linkage.cpp
blob8e76084980d4d53875bd0c23ecbdd3aaa765c342
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fapple-kext -emit-llvm -o - %s | FileCheck %s
3 struct Base {
4 virtual ~Base();
5 } ;
7 struct Derived : Base {
8 void operator delete(void *) { }
9 Derived();
12 void foo() {
13 Derived d1; // ok
16 // CHECK-LABEL: define internal noundef i32 @_Z1fj(
17 inline unsigned f(unsigned n) { return n == 0 ? 0 : n + f(n-1); }
19 unsigned g(unsigned n) { return f(n); }
21 // rdar://problem/10133200: give explicit instantiations external linkage in kernel mode
22 // CHECK-LABEL: define{{.*}} void @_Z3barIiEvv()
23 template <typename T> void bar() {}
24 template void bar<int>();
26 // CHECK-LABEL: define internal noundef i32 @_Z5identIiET_S0_(
27 template <typename X> X ident(X x) { return x; }
29 int foo(int n) { return ident(n); }
31 // CHECK-LABEL: define internal void @_ZN7DerivedD1Ev(
32 // CHECK-LABEL: define internal void @_ZN7DerivedD0Ev(
33 // CHECK-LABEL: define internal void @_ZN7DeriveddlEPv(