aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/btf/btf-pointers-2.c
blob: c77b224d7111b7864319babb1a193ce020e72e92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Test BTF generation for pointers to void.

   In this test, we expect that the pointer references type ID 0, the reserved
   void typeid, and that no intermediate type is generated for void. */

/* { dg-do compile } */
/* { dg-options "-O0 -gbtf -dA" } */

/* { dg-final { scan-assembler-times "\[\t \]0x2000000\[\t \]+\[^\n\]*btt_info" 1 } } */

/* { dg-final { scan-assembler-times "\[\t \]0x1000000\[\t \]+\[^\n\]*btt_info" 0 } } */

void *ptr;