1 /* CTF forward type is generated for forward declarations of enum types in C.
2 
3    Check that the ctf-kind of CTF_K_FOWARD type is CTF_K_ENUM.
4    For forward types, the compiler encodes the CTF kind in the ctt_type field.
5    CTF_K_FORWARD is used as the CTF type as usual in the ctt_info.  */
6 
7 /* { dg-do compile )  */
8 /* { dg-options "-O0 -gctf -dA" } */
9 
10 /* { dg-final { scan-assembler-times "\[\t \]0x26000000\[\t \]+\[^\n\]*ctt_info" 1 } } */
11 /* { dg-final { scan-assembler-times "\[\t \]0x8\[\t \]+\[^\n\]*ctt_size or ctt_type" 1 } } */
12 /* { dg-final { scan-assembler-times "ascii \"vibgyor.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
13 
14 enum vibgyor;
15 
16 char * (*get_color_name) (enum vibgyor);
17