Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / template-dependent-bind-temporary.cpp
blob32ca9ad4bf7db2ffa94148eb313945f63b046bde
1 // RUN: %clang_cc1 %s -emit-llvm -triple %itanium_abi_triple -o - | FileCheck %s
2 // PR7851
3 struct string {
4 string (const string& );
5 string ();
6 ~string();
7 };
9 string operator + (char ch, const string&);
11 template <class T>
12 void IntToString(T a)
14 string result;
15 T digit;
16 char((digit < 10 ? '0' : 'a') + digit) + result;
19 int main() {
20 // CHECK-LABEL: define linkonce_odr {{.*}}void @_Z11IntToStringIcEvT_(
21 IntToString('a');