Debian Codegraph @

gcc/testsuite/gcc.dg/debug/ctf/ctf-array-3.c

raw
1 /* CTF generation for variable length arrays.
2
3 In this testcase, a specific flavor of vla appears in the function
4 signature.
5
6 TBD_CTF_FORMAT_OPEN_ISSUES (1) -
7 This testcase makes a note of another case of a probable misrepresentation.
8 See ctf-array-2.c for some context on how vla's are a case of a probable
9 misrepresentation in CTF. Nevertheless, compilation should not fail. */
10
11 /* { dg-do compile } */
12 /* { dg-options "-gctf" } */
13
14 int foo (int a, int b[a][a])
15 {
16 return b[a-1][a-3];
17 }