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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [offsetof6.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do compile } */
2
 
3
// From PR28573
4
 
5
struct A
6
{
7
  char d[44];
8
  char &operator [] ( int indx ) { return d[indx]; }
9
};
10
 
11
struct B
12
{
13
  A a;
14
};
15
 
16
int main()
17
{
18
  return __builtin_offsetof(B, a[0]); /* { dg-error "cannot apply.*offsetof" } */
19
}

powered by: WebSVN 2.1.0

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