aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c23-constexpr-2b.c
blob: bcdff322a3f87a8803a2183af8be71089039c936 (plain)
1
2
3
4
5
6
/* Test C23 constexpr.  Second file for link test.  */
/* { dg-do compile } */
/* { dg-options "-std=c23 -pedantic-errors" } */

/* constexpr objects at file scope have internal linkage.  */
constexpr int a = 3;