Files
clang-p2996/clang/test/CodeGenCXX/template-dependent-bind-temporary.cpp
Aaron Ballman d618f1c3b1 Remove rdar links; NFC
This removes links to rdar, which is an internal bug tracker that the
community doesn't have visibility into.

See further discussion at:
https://discourse.llvm.org/t/code-review-reminder-about-links-in-code-commit-messages/71847
2023-07-07 08:41:11 -04:00

24 lines
439 B
C++

// RUN: %clang_cc1 %s -emit-llvm -triple %itanium_abi_triple -o - | FileCheck %s
// PR7851
struct string {
string (const string& );
string ();
~string();
};
string operator + (char ch, const string&);
template <class T>
void IntToString(T a)
{
string result;
T digit;
char((digit < 10 ? '0' : 'a') + digit) + result;
}
int main() {
// CHECK-LABEL: define linkonce_odr {{.*}}void @_Z11IntToStringIcEvT_(
IntToString('a');
}