Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / template / dependent-expr1.C
blob79649861ba47e3107b324d03029c46c8ba996333
1 // { dg-do compile }
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 30 Jun 2003 <nathan@codesourcery.com>
6 // PR c++ 9779. ICE
8 struct I 
12 void Foo (int);
13 namespace std
15   template <typename X>
16   void Baz (I *x)
17   {
18     Foo (sizeof (I));
19     Foo (sizeof (x));
20     Foo (__alignof__ (I));
21     Foo (__alignof__ (x));
22     Foo (x->~I ()); // { dg-error "" }
23     //    Foo (typeid (I));
24     Foo (delete x); // { dg-error "" }
25     Foo (delete[] x); // { dg-error "" }
26     Foo (throw x); // { dg-error "" }
27   }