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