Skip to content

Commit 93d1b8d

Browse files
committed
Array initialization with a non-array is expected to fail
In the past, this failed an internal assertion; nowadays a proper error is reported to the user. clang -Wall -Werror says: Struct_Initialization1/main.c:9:38: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] struct _classinfo nullclass1 = { 42, 0, 0 }; ^~~~ { } 1 error generated.
1 parent 74fa240 commit 93d1b8d

File tree

1 file changed

+3
-3
lines changed
  • regression/ansi-c/Struct_Initialization1

1 file changed

+3
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
KNOWNBUG
1+
CORE
22
main.c
33

4-
^EXIT=0$
4+
^EXIT=(64|1)$
55
^SIGNAL=0$
6+
^CONVERSION ERROR$
67
--
78
^warning: ignoring
8-
^CONVERSION ERROR$

0 commit comments

Comments
 (0)