2014-01-15 03:35:09 +08:00
|
|
|
// RUN: %clang_cc1 %s -emit-llvm -triple %itanium_abi_triple -o - | FileCheck %s
|
2011-07-06 23:46:09 +08:00
|
|
|
|
|
|
|
// This was a problem in Sema, but only shows up as noinline missing
|
|
|
|
// in CodeGen.
|
|
|
|
|
2013-12-13 00:07:11 +08:00
|
|
|
// CHECK: define linkonce_odr {{.*}}void @_ZN6VectorIiE13growStorageByEv(%struct.Vector* %this) [[NI:#[0-9]+]]
|
2011-07-06 23:46:09 +08:00
|
|
|
|
|
|
|
template <class Ty> struct Vector {
|
|
|
|
void growStorageBy();
|
|
|
|
};
|
|
|
|
template <class T> __attribute__((noinline)) void Vector<T>::growStorageBy() {
|
|
|
|
}
|
|
|
|
void foo() {
|
|
|
|
Vector<int> strs;
|
|
|
|
strs.growStorageBy();
|
|
|
|
}
|
2013-02-20 15:22:19 +08:00
|
|
|
|
2013-02-21 03:30:01 +08:00
|
|
|
// CHECK: attributes [[NI]] = { noinline nounwind{{.*}} }
|