aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pointer-counted-by-4-struct.c
blob: 50246d29477bdeea8e4f390df069a2da252ec12e (plain)
1
2
3
4
5
6
7
8
9
10
/* Test the attribute counted_by for pointer field and its usage in
 * __builtin_dynamic_object_size.  */ 
/* { dg-do run } */
/* { dg-options "-O2" } */
struct A {
  int a;
  char *b;
};
#define PTR_TYPE struct A 
#include "pointer-counted-by-4.c"