blob: 7de07724bf17fbcedcac09514de17178d1140f32 [file] [log] [blame]
Daniel Dunbar80737ad2009-12-15 22:01:24 +00001// RUN: %clang -emit-llvm -S -o - %s
Douglas Gregor4411d2e2009-12-14 16:27:04 +00002
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}