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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [overload/] [VLA.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
//Origin: kengole@us.ibm.com
2
 
3
//PR c++/2478
4
// G++ was rejecting this as it could not convert `int (*)[]' to `int (*)[0]'.
5
// Using the C99 VLA style arrays in a struct.
6
 
7
// { dg-do compile }
8
 
9
struct S {
10
  int (*p)[];
11
} B;
12
 
13
void foo() {
14
  int (*p)[];
15
  B.p=p;  // { dg-bogus "cannot convert" }
16
}

powered by: WebSVN 2.1.0

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