diff options
author | Mike Stump <mikestump@comcast.net> | 2012-04-10 05:20:15 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 2012-04-10 05:20:15 +0000 |
commit | ceaba33ea7f48dd24b36dde7ea7f38f19c94763a (patch) | |
tree | 19f16326979f530d07c3afdd69c2bddd692e50ac | |
parent | d07798960c60f6300b9ca0781f2571eae9210ec0 (diff) | |
download | gcc-ceaba33ea7f48dd24b36dde7ea7f38f19c94763a.zip gcc-ceaba33ea7f48dd24b36dde7ea7f38f19c94763a.tar.gz gcc-ceaba33ea7f48dd24b36dde7ea7f38f19c94763a.tar.bz2 |
udlit-raw-op.C: Don't use CRLF endings.
* g++.dg/cpp0x/udlit-raw-op.C: Don't use CRLF endings.
* gcc.dg/tree-ssa/vrp59.c: Likewise.
From-SVN: r186259
-rw-r--r-- | gcc/testsuite/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/udlit-raw-op.C | 42 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/vrp59.c | 70 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/vrp60.c | 62 |
4 files changed, 90 insertions, 87 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3c21fe0..e4114d5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2012-04-09 Mike Stump <mikestump@comcast.net> + * g++.dg/cpp0x/udlit-raw-op.C: Don't use CRLF endings. + * gcc.dg/tree-ssa/vrp59.c: Likewise. + * gcc.dg/dll-8.c: Remove execute permissions. * g++.dg/ext/dllexport5.C: Likewise. diff --git a/gcc/testsuite/g++.dg/cpp0x/udlit-raw-op.C b/gcc/testsuite/g++.dg/cpp0x/udlit-raw-op.C index 3bbf19c..a31ef93 100644 --- a/gcc/testsuite/g++.dg/cpp0x/udlit-raw-op.C +++ b/gcc/testsuite/g++.dg/cpp0x/udlit-raw-op.C @@ -1,21 +1,21 @@ -// { dg-do run }
-// { dg-options "-std=c++0x" }
-
-#include <cassert>
-#include <cstring>
-
-int
-operator"" _raw_umber(const char * str)
-{
- return strlen(str);
-}
-
-int
-main()
-{
- int i = 0123012301230123012301230123012301230123012301230123012301230123_raw_umber;
- assert( i == 64 );
-
- int j = 90123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789_raw_umber;
- assert( j == 101 );
-}
+// { dg-do run } +// { dg-options "-std=c++0x" } + +#include <cassert> +#include <cstring> + +int +operator"" _raw_umber(const char * str) +{ + return strlen(str); +} + +int +main() +{ + int i = 0123012301230123012301230123012301230123012301230123012301230123_raw_umber; + assert( i == 64 ); + + int j = 90123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789_raw_umber; + assert( j == 101 ); +} diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp59.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp59.c index 30b26f5..963282a 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp59.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp59.c @@ -1,35 +1,35 @@ -/* { dg-do compile } */
-/* { dg-options "-O2 -fno-tree-ccp -fdump-tree-vrp1" } */
-
-int f(int x)
-{
- if (x >= 0 && x <= 3)
- {
- x = x ^ 3;
- x = x & 3;
- }
- return x;
-}
-
-int g(int x)
-{
- if (x >= 0 && x <= 3)
- {
- x = x ^ 2;
- x = x & 3;
- }
- return x;
-}
-
-int h(int x)
-{
- if (x >= 0 && x <= 3)
- {
- x = x ^ 1;
- x = x & 3;
- }
- return x;
-}
-
-/* { dg-final { scan-tree-dump-not " & 3;" "vrp1" } } */
-/* { dg-final { cleanup-tree-dump "vrp1" } } */
+/* { dg-do compile } */ +/* { dg-options "-O2 -fno-tree-ccp -fdump-tree-vrp1" } */ + +int f(int x) +{ + if (x >= 0 && x <= 3) + { + x = x ^ 3; + x = x & 3; + } + return x; +} + +int g(int x) +{ + if (x >= 0 && x <= 3) + { + x = x ^ 2; + x = x & 3; + } + return x; +} + +int h(int x) +{ + if (x >= 0 && x <= 3) + { + x = x ^ 1; + x = x & 3; + } + return x; +} + +/* { dg-final { scan-tree-dump-not " & 3;" "vrp1" } } */ +/* { dg-final { cleanup-tree-dump "vrp1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp60.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp60.c index 9b34e3d..059d764 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vrp60.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vrp60.c @@ -1,31 +1,31 @@ -/* { dg-do compile } */
-/* { dg-options "-O2 -fno-tree-ccp -fno-tree-dominator-opts -fdump-tree-vrp1" } */
-
-int foo (int x, int b)
-{
- int cst;
- if (b)
- cst = -__INT_MAX__ - 1;
- else
- cst = -__INT_MAX__;
- x = x | cst;
- if (x >= 0)
- return 12345;
- return x;
-}
-
-int bar (int x, int b)
-{
- int cst;
- if (b)
- cst = __INT_MAX__;
- else
- cst = __INT_MAX__ - 1;
- x = x & cst;
- if (x < 0)
- return 12345;
- return x;
-}
-
-/* { dg-final { scan-tree-dump-not "12345" "vrp1" } } */
-/* { dg-final { cleanup-tree-dump "vrp1" } } */
+/* { dg-do compile } */ +/* { dg-options "-O2 -fno-tree-ccp -fno-tree-dominator-opts -fdump-tree-vrp1" } */ + +int foo (int x, int b) +{ + int cst; + if (b) + cst = -__INT_MAX__ - 1; + else + cst = -__INT_MAX__; + x = x | cst; + if (x >= 0) + return 12345; + return x; +} + +int bar (int x, int b) +{ + int cst; + if (b) + cst = __INT_MAX__; + else + cst = __INT_MAX__ - 1; + x = x & cst; + if (x < 0) + return 12345; + return x; +} + +/* { dg-final { scan-tree-dump-not "12345" "vrp1" } } */ +/* { dg-final { cleanup-tree-dump "vrp1" } } */ |