X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Ftemplate%2Fctor1.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Ftemplate%2Fctor1.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=81caa1fb47e097b28dcfcd3917ed9dd3f41614c0;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.dg/template/ctor1.C b/gcc/testsuite/g++.dg/template/ctor1.C deleted file mode 100644 index 81caa1fb..00000000 --- a/gcc/testsuite/g++.dg/template/ctor1.C +++ /dev/null @@ -1,31 +0,0 @@ -// { dg-do compile } - -// Copyright (C) 2001 Free Software Foundation, Inc. -// Contributed by Nathan Sidwell 31 Dec 2001 - -// PR 5132. ICE on struct constructors in templates. - -// snippets from bits/huge_val.h - -#define __HUGE_VAL_bytes { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } -#define __huge_val_t union { unsigned char __c[8]; double __d; } -#define HUGE_VAL (__extension__ \ - ((__huge_val_t) { __c: __HUGE_VAL_bytes }).__d) - -void foo( const int&) { - HUGE_VAL; // no problem here -} - -template -void Tfoo( const F&) { - HUGE_VAL; // g++ fails here -} - -template struct M { T m; }; - -void Foo () -{ - Tfoo (1.2f); - (__extension__ ((M) {m:3})); - (__extension__ ((M []) {{m:3}})); -}