1  /* BTF generation for variables with removed type.
       2  
       3     BTF does not support floating point types, so no representation for the type
       4     'float' will be emitted. In this test, we check to also ensure that the
       5     variable 'bar' is not emitted, as it references a type that is not supported
       6     in BTF.  */
       7  
       8  /* { dg-do compile } */
       9  /* { dg-options "-O0 -gbtf -dA" } */
      10  
      11  /* We expect only 3 variables.  */
      12  /* { dg-final { scan-assembler-times "\[\t \]0xe000000\[\t \]+\[^\n\]*btv_info" 3 } } */
      13  
      14  /* { dg-final { scan-assembler-times "ascii \"foo.0\"\[\t \]+\[^\n\]*btf_string" 1 } } */
      15  /* { dg-final { scan-assembler-times "ascii \"baz.0\"\[\t \]+\[^\n\]*btf_string" 1 } } */
      16  /* { dg-final { scan-assembler-times "ascii \"myst.0\"\[\t \]+\[^\n\]*btf_string" 1 } } */
      17  
      18  int foo;
      19  float __attribute__((__vector_size__(16))) bar;
      20  int baz[10];
      21  
      22  struct st
      23  {
      24    int a;
      25    int b : 6;
      26    int c : 2;
      27  } myst;