OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ext/] [vla2.C] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "" }
3
 
4
// Copyright (C) 2003 Free Software Foundation, Inc.
5
// Contributed by Nathan Sidwell 21 Mar 2003 
6
 
7
// PR 9708. We unified a VLA size as a constant. Then issued bogus
8
// errors.
9
 
10
template 
11
char* begin(char (&a) [N] );     // { dg-message "note" }
12
 
13
void bar(int i)
14
{
15
  char d[i] ;
16
 
17
  begin(d);  // { dg-error "no matching function" "" }
18
  // { dg-message "(candidate|valid template argument)" "candidate note" { target *-*-* } 17 }
19
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.