blob: 338febbe97a9a67d9f63523d9356e53b68e2a486 [file] [log] [blame]
Daniel Dunbar9fde9c42010-06-29 16:52:24 +00001// RUN: %clang_cc1 -emit-llvm -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}