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