[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenCXX / noinline-template.cpp
blobd14cf8ad7e3f031c3a863c8406fb268d83066210
1 // RUN: %clang_cc1 %s -emit-llvm -triple %itanium_abi_triple -o - | FileCheck %s
3 // This was a problem in Sema, but only shows up as noinline missing
4 // in CodeGen.
6 // CHECK: define linkonce_odr {{.*}}void @_ZN6VectorIiE13growStorageByEv(%struct.Vector* {{[^,]*}} %this) [[NI:#[0-9]+]]
8 template <class Ty> struct Vector {
9 void growStorageBy();
11 template <class T> __attribute__((noinline)) void Vector<T>::growStorageBy() {
13 void foo() {
14 Vector<int> strs;
15 strs.growStorageBy();
18 // CHECK: attributes [[NI]] = { mustprogress noinline nounwind{{.*}} }