diff options
author | Nicola Pero <nicola.pero@meta-innovation.com> | 2011-02-20 17:41:36 +0000 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2011-02-20 17:41:36 +0000 |
commit | 3890ce93e267fe56883b7b831475180641d9038f (patch) | |
tree | 0f653ce7383a43e573f16844ec500fe625167d89 /gcc/testsuite/objc.dg | |
parent | 869b0af5c5c3790ef77ffcc0cddf351a99b6c762 (diff) | |
download | gcc-3890ce93e267fe56883b7b831475180641d9038f.zip gcc-3890ce93e267fe56883b7b831475180641d9038f.tar.gz gcc-3890ce93e267fe56883b7b831475180641d9038f.tar.bz2 |
Fixed Objective-C dotsyntax with a constant type right-hand side
From-SVN: r170342
Diffstat (limited to 'gcc/testsuite/objc.dg')
-rw-r--r-- | gcc/testsuite/objc.dg/property/dotsyntax-22.m | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/objc.dg/property/dotsyntax-22.m b/gcc/testsuite/objc.dg/property/dotsyntax-22.m new file mode 100644 index 0000000..cc583482 --- /dev/null +++ b/gcc/testsuite/objc.dg/property/dotsyntax-22.m @@ -0,0 +1,19 @@ +/* PR objc/47784. This testcase used to crash the compiler. */ + +typedef struct { + float x; +} SomeType; + +@interface MyClass + +@property(assign,readwrite) SomeType position; + +@end + +void example (MyClass *x) +{ + const SomeType SomeTypeZero = {0.0f}; + + x.position= SomeTypeZero; +} + |