Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / ext / vla2.C
blobc17dc860910cd37b86f44347177c3ea6294fc3f0
1 // { dg-do compile }
2 // { dg-options "" }
4 // Copyright (C) 2003 Free Software Foundation, Inc.
5 // Contributed by Nathan Sidwell 21 Mar 2003 <nathan@codesourcery.com>
7 // PR 9708. We unified a VLA size as a constant. Then issued bogus
8 // errors.
10 template <unsigned int N>
11 char* begin(char (&a) [N] );
13 void bar(int i)
15   char d[i] ;
16   
17   begin(d);  // { dg-error "no matching function" "" }