Skip to content

Commit 9b0cff4

Browse files
another one
1 parent ccf13f3 commit 9b0cff4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libc/test/integration/startup/linux/init_fini_array_test.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ class A {
3131
int GLOBAL_INDEX = 512;
3232
int INITVAL_INITIALIZER = 0x600D;
3333

34+
#pragma GCC diagnostic push
35+
#pragma GCC diagnostic ignored "-Wglobal-constructors"
3436
A global(GLOBAL_INDEX, INITVAL_INITIALIZER);
37+
#pragma GCC diagnostic pop
3538

3639
int initval = 0;
3740
int preinitval = 0;

0 commit comments

Comments
 (0)