OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* gcc.dg/march.c: Ignore a note for some targets.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
builtin-object-size-11.c
1
/* PR48985 */
2
/* { dg-do run } */
3
/* { dg-options "-std=gnu89" } */
4
5
extern void abort (void);
6
7
struct s {
8
int i;
9
char c[];
10
} s = { 1, "01234" };
11
12
__SIZE_TYPE__ f (void) { return __builtin_object_size (&s.c, 0); }
13
14
int
15
main()
16
{
17
if (f() != sizeof ("01234"))
18
abort ();
19
20
return 0;
21
}