Debian Codegraph @

testsuite/small/offsetof-2.c

raw
1 /* { dg-options "-DCE_EXTRACT_FUNCTIONS=f -DCE_NO_EXTERNALIZATION" }*/
2
3 typedef struct {
4 int x;
5 int y;
6 } Head;
7
8 unsigned long f()
9 {
10 return __builtin_offsetof(Head, y);
11 }
12
13 /* { dg-final { scan-tree-dump "__builtin_offsetof" } } */
14 /* { dg-final { scan-tree-dump "} Head;" } } */