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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [ext/] [flexary1.C] - Blame information for rev 832

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
 
3
// Copyright (C) 2003 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 22 Jul 2003 
5
 
6
// PR c++ 11614
7
 
8
typedef int ary_t[];
9
 
10
struct test
11
{
12
  ary_t *b;
13
  int (*a)[]; // this is not a flexible array member
14
};
15
 
16
void test(void)
17
{
18
  struct test s;
19
  int (*a)[] = 0;
20
  ary_t *b = 0;
21
 
22
  a = s.a;
23
  a = s.b;
24
 
25
  s.a = a;
26
  s.b = a;
27
 
28
  b = s.a;
29
  b = s.b;
30
 
31
  s.a = b;
32
  s.b = b;
33
}

powered by: WebSVN 2.1.0

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