repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
* tree-loop-distribution.c (struct partition): New field recording
[official-gcc.git]
/
gcc
/
testsuite
/
objc.dg
/
type-size-3.m
blob
bc66b0be67a001cd7ffa3e2764efac53c09dd3df
1
/* Reject ivars that use flexible array members. */
2
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com> */
3
/* { dg-do compile } */
4
5
typedef struct
6
{
7
unsigned long int a;
8
double b[];
9
} test_type;
10
11
@interface Test
12
{
13
test_type c; /* { dg-error "instance variable .c. uses flexible array member" } */
14
}
15
@end
16
17
@implementation Test
18
@end