blob: 6fa6d556dc502ea500c7b982359620fddaed2f71 [file] [log] [blame]
Douglas Gregordb121ba2009-12-14 16:27:04 +00001// RUN: clang -emit-llvm -S -o - %s
2
3// PR5775
4class Twine {
5 Twine(const char *Str) { }
6};
7
8static void error(const Twine &Message);
9
10template<typename>
11struct opt_storage {
12 void f() {
13 error("cl::location(x) specified more than once!");
14 }
15};
16
17void f(opt_storage<int> o) {
18 o.f();
19}