Debian Codegraph @

clang/test/Sema/embed_compound_literal.c

raw
1 // RUN: %clang_cc1 -std=c23 -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -verify -x c++ -Wno-c23-extensions %s
3 // expected-no-diagnostics
4
5 char *p1 = (char[]){
6 #embed __FILE__
7 };
8
9 int *p2 = (int[]){
10 #embed __FILE__
11 };
12
13 int *p3 = (int[30]){
14 #embed __FILE__ limit(30)
15 };