mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 08:16:06 +00:00
16 lines
282 B
C
16 lines
282 B
C
// RUN: %clang_cc1 -std=c23 -fsyntax-only -verify %s
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -x c++ -Wno-c23-extensions %s
|
|
// expected-no-diagnostics
|
|
|
|
char *p1 = (char[]){
|
|
#embed __FILE__
|
|
};
|
|
|
|
int *p2 = (int[]){
|
|
#embed __FILE__
|
|
};
|
|
|
|
int *p3 = (int[30]){
|
|
#embed __FILE__ limit(30)
|
|
};
|