1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
---|---|
2 | // expected-no-diagnostics |
3 | |
4 | // Make sure this doesn't crash. |
5 | |
6 | @protocol P |
7 | @end |
8 | template <class T> |
9 | id<P> foo(T) { |
10 | int i; |
11 | foo(i); |
12 | } |
13 |
1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
---|---|
2 | // expected-no-diagnostics |
3 | |
4 | // Make sure this doesn't crash. |
5 | |
6 | @protocol P |
7 | @end |
8 | template <class T> |
9 | id<P> foo(T) { |
10 | int i; |
11 | foo(i); |
12 | } |
13 |