From 9a52ca27f2283854e5295d0e94e2fcf97c941211 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Wed, 5 Apr 2017 16:56:49 -0700 Subject: Add a test explicitly for default type parameters This is exercised in other tests, but in a round about fashion. It is nice to have a test that explicitly exercises default type parameters, without any cruft. --- tests/headers/default-template-parameter.hpp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/headers/default-template-parameter.hpp (limited to 'tests/headers/default-template-parameter.hpp') diff --git a/tests/headers/default-template-parameter.hpp b/tests/headers/default-template-parameter.hpp new file mode 100644 index 00000000..4deed834 --- /dev/null +++ b/tests/headers/default-template-parameter.hpp @@ -0,0 +1,7 @@ +template +struct Foo { + T t; + U u; +}; + +static Foo bar; -- cgit v1.2.3