From: Mark Mitchell Date: Tue, 2 Jul 2002 03:19:37 +0000 (+0000) Subject: * g++.dg/template/sizeof2.C: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=32131e44f55a964b90eaf990509c79aaf6823fd3;p=gcc.git * g++.dg/template/sizeof2.C: New test. From-SVN: r55170 --- diff --git a/gcc/testsuite/g++.dg/template/sizeof2.C b/gcc/testsuite/g++.dg/template/sizeof2.C new file mode 100644 index 00000000000..76d1cf44c4e --- /dev/null +++ b/gcc/testsuite/g++.dg/template/sizeof2.C @@ -0,0 +1,23 @@ +// { dg-do compile } + +template +struct Foobar { + // Contents irrelevant +}; + +template +struct Wrapper { + // Contents irrelevant +}; + +template +Foobar)> * +compiler_bug (A) +{ + return 0; +} + +int main() +{ + compiler_bug(1); +}