diff options
author | lauras <lauras@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-03-01 15:27:54 +0000 |
---|---|---|
committer | lauras <lauras@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-03-01 15:27:54 +0000 |
commit | be8a82b8e4ad4886a4fc8210ea7f6b48bd0f10ee (patch) | |
tree | ecda0ba13ac028840ac2f39d6c13789ed98bcedb /gcc/testsuite/objc.dg/property | |
parent | 9034761137f5fcdf7a46f9a545136fa615e7bafc (diff) | |
parent | 96b07a493754f1f2d72c564bb3e071b541f0e351 (diff) | |
download | gcc-be8a82b8e4ad4886a4fc8210ea7f6b48bd0f10ee.tar.gz |
Merge from trunk up to r170497
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gc-improv@170594 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/objc.dg/property')
-rw-r--r-- | gcc/testsuite/objc.dg/property/dotsyntax-22.m | 19 | ||||
-rw-r--r-- | gcc/testsuite/objc.dg/property/property.exp | 5 |
2 files changed, 22 insertions, 2 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 00000000000..cc583482263 --- /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; +} + diff --git a/gcc/testsuite/objc.dg/property/property.exp b/gcc/testsuite/objc.dg/property/property.exp index 350c4b8339f..e8773018841 100644 --- a/gcc/testsuite/objc.dg/property/property.exp +++ b/gcc/testsuite/objc.dg/property/property.exp @@ -33,8 +33,9 @@ set tests [lsort [glob -nocomplain $srcdir/$subdir/*.m]] # Main loop. dg-runtest $tests "-fgnu-runtime" $DEFAULT_CFLAGS -# darwin targets can also run code with the NeXT runtime. -if [istarget "*-*-darwin*" ] { +# Darwin targets can also run code with the NeXT runtime. +# but Properties are not supported by the runtime lib before Darwin 9. +if [istarget "*-*-darwin\[9123\]*" ] { dg-runtest $tests "-fnext-runtime" $DEFAULT_CFLAGS } |