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