Debian Codegraph @

gcc/testsuite/objc.dg/property/dotsyntax-22.m

raw
1 /* PR objc/47784. This testcase used to crash the compiler. */
2
3 typedef struct {
4 float x;
5 } SomeType;
6
7 @interface MyClass
8
9 @property(assign,readwrite) SomeType position;
10
11 @end
12
13 void example (MyClass *x)
14 {
15 const SomeType SomeTypeZero = {0.0f};
16
17 x.position= SomeTypeZero;
18 }
19