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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bugs/] [900324_04.C] - Blame information for rev 853

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
// g++ 1.37.1 bug 900324_04
3
 
4
// g++ implements an extension which supports the copying of array objects.
5
 
6
// This extension is not described in the current C++ Reference Manual, and
7
// it is not implemented by cfront (2.0).
8
 
9
// g++ should generate errors for the use of this extension when -pedantic
10
// is used, however it does not.
11
 
12
// Cfront 2.0 passes this test.
13
 
14
// keywords: extension, pedantic, arrays, copy
15
 
16
typedef int int_array[20];
17
 
18
int_array ia1;
19
int_array ia2;
20
 
21
void function_0 ()
22
{
23
  ia1 = ia2;            // { dg-error "" } gnu extension
24
}
25
 
26
int main () { return 0; }

powered by: WebSVN 2.1.0

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