blob: 97569f0aa33b152e3a8135cdb34dc23c99c7e788 [file] [log] [blame]
Richard Smith87bb5692015-06-09 00:35:49 +00001// RUN: rm -rf %t
2// RUN: %clang_cc1 -fmodules -verify -fmodules-cache-path=%t -I %S/Inputs/template-default-args -std=c++11 %s
3//
4// expected-no-diagnostics
5
6template<typename T> struct A;
7template<typename T> struct B;
8template<typename T> struct C;
9template<typename T = int> struct D;
Richard Smithe7bd6de2015-06-10 20:30:23 +000010template<typename T = int> struct E {};
Richard Smith87bb5692015-06-09 00:35:49 +000011
12#include "b.h"
13
14template<typename T = int> struct A {};
15template<typename T> struct B {};
16template<typename T = int> struct B;
17template<typename T = int> struct C;
18template<typename T> struct D {};
Richard Smithe7bd6de2015-06-10 20:30:23 +000019template<typename T> struct F {};
20
21#include "c.h"
Richard Smith87bb5692015-06-09 00:35:49 +000022
23A<> a;
24B<> b;
25extern C<> c;
26D<> d;
Richard Smithe7bd6de2015-06-10 20:30:23 +000027E<> e;
28F<> f;