21 lines · cpp
1// RUN: %clang_cc1 -emit-llvm -o - %s2 3// PR57754class Twine {5public:6 Twine(const char *Str) { }7};8 9static void error(const Twine &Message) {}10 11template<typename>12struct opt_storage {13 void f() {14 error("cl::location(x) specified more than once!");15 }16};17 18void f(opt_storage<int> o) {19 o.f();20}21