OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CFStrings for Darwin
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
obj-c++.dg
/
torture
/
strings
/
const-str-8.mm
diff --git
a/gcc/testsuite/obj-c++.dg/const-str-8.mm
b/gcc/testsuite/obj-c++.dg/torture/strings/const-str-8.mm
similarity index 77%
rename from
gcc/testsuite/obj-c++.dg/const-str-8.mm
rename to
gcc/testsuite/obj-c++.dg/torture/strings/const-str-8.mm
index
6747341
..
17997b6
100644
(file)
--- a/
gcc/testsuite/obj-c++.dg/const-str-8.mm
+++ b/
gcc/testsuite/obj-c++.dg/torture/strings/const-str-8.mm
@@
-1,10
+1,12
@@
/* Test for assigning compile-time constant-string objects to static variables. */
/* Contributed by Ziemowit Laski <zlaski@apple.com> */
/* Test for assigning compile-time constant-string objects to static variables. */
/* Contributed by Ziemowit Laski <zlaski@apple.com> */
-/* { dg-options "-fconstant-string-class=Foo" } */
/* { dg-do run { target *-*-darwin* } } */
/* { dg-do run { target *-*-darwin* } } */
+/* { dg-options "-fconstant-string-class=Foo" } */
+/* { dg-options "-mno-constant-cfstrings -fconstant-string-class=Foo" { target *-*-darwin* } } */
+/* { dg-additional-sources "../../../objc-obj-c++-shared/Object1.mm" } */
-#include "../objc-obj-c++-shared/Object1.h"
+#include "../
../../
objc-obj-c++-shared/Object1.h"
#include <stdlib.h>
@interface Foo: Object {
#include <stdlib.h>
@interface Foo: Object {
@@
-40,5
+42,3
@@
int main () {
PrefsSynchronize();
return 0;
}
PrefsSynchronize();
return 0;
}
-
-#include "../objc-obj-c++-shared/Object1-implementation.h"