From: Uros Bizjak Date: Mon, 30 Oct 2017 20:05:20 +0000 (+0100) Subject: pr82725.C: Move to ... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8581ce0a9d73021b110849b3992df0fc88978b6c;p=gcc.git pr82725.C: Move to ... * g++.dg/pr82725.C: Move to ... * g++.dg/cpp0x/pr82725.C: ... here. Add c++11 target directive. From-SVN: r254242 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0ffba855b77..7b1bf85ab76 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-10-30 Uros Bizjak + + * g++.dg/pr82725.C: Move to ... + * g++.dg/cpp0x/pr82725.C: ... here. Add c++11 target directive. + 2017-10-30 Steven G. Kargl * gfortran.dg/dtio_13.f90: Remove TODO comment and dg-error test. diff --git a/gcc/testsuite/g++.dg/cpp0x/pr82725.C b/gcc/testsuite/g++.dg/cpp0x/pr82725.C new file mode 100644 index 00000000000..14cb6d897c9 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/pr82725.C @@ -0,0 +1,16 @@ +// { dg-do compile { target { { i?86-*-* x86_64-*-* } && c++11 } } } +// { dg-require-effective-target pie } +// { dg-options "-O2 -fpie -mtls-direct-seg-refs" } + +struct string +{ + __SIZE_TYPE__ length; + const char *ptr; +}; + +string +tempDir () +{ + thread_local string cache; + return cache; +} diff --git a/gcc/testsuite/g++.dg/pr82725.C b/gcc/testsuite/g++.dg/pr82725.C deleted file mode 100644 index c92b28a3520..00000000000 --- a/gcc/testsuite/g++.dg/pr82725.C +++ /dev/null @@ -1,16 +0,0 @@ -// { dg-do compile { target i?86-*-* x86_64-*-* } } -// { dg-require-effective-target pie } -// { dg-options "-O2 -fpie -mtls-direct-seg-refs" } - -struct string -{ - __SIZE_TYPE__ length; - const char *ptr; -}; - -string -tempDir () -{ - thread_local string cache; - return cache; -}