Sign in
gnu
/
gcc
/
refs/heads/master
/
.
/
gcc
/
testsuite
/
gcc.dg
/
c23-tag-9.c
blob: 1d32560ec2375d35d57b470d7fa0f191aa396912 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-std=c23" } */
struct
foo
{
int
x
;
}
x
;
struct
foo
{
alignas
(
128
)
int
x
;
}
y
;
/* { dg-error "redefinition" } */
static_assert
(
alignof
(
y
)
==
128
);