blob: afca358784442fb39baf31736aa2f352c1d9c18f [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Douglas Gregor49f25ec2009-05-15 21:18:27 +00002template <typename T> struct S {
3 S() { }
4 S(T t);
5};
6
7template struct S<int>;
8
9void f() {
10 S<int> s1;
11 S<int> s2(10);
12}
Douglas Gregorb212d9a2010-05-21 21:25:08 +000013
14namespace PR7184 {
15 template<typename T>
16 void f() {
17 typedef T type;
18 void g(int array[sizeof(type)]);
19 }
20
21 template void f<int>();
22}