pr66314.c: Moved from here to ..
authorJeff Law <law@redhat.com>
Thu, 13 Aug 2015 22:19:56 +0000 (16:19 -0600)
committerJeff Law <law@gcc.gnu.org>
Thu, 13 Aug 2015 22:19:56 +0000 (16:19 -0600)
* gcc.dg/pr66314.c: Moved from here to ..
* gcc.dg/asan/pr66314.c: Here.  Use -fno-sanitize=all
to clear all sanitizers before -fsanitize=kernel-address.

From-SVN: r226877

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/asan/pr66314.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr66314.c [deleted file]

index 4561032457bcec1fff4746d7121520ade4c7cf77..2929fe4369ed88abbdd7e8b95cb0c6234d002783 100644 (file)
@@ -1,3 +1,9 @@
+2015-08-13  Jeff Law  <law@redhat.com>
+
+       * gcc.dg/pr66314.c: Moved from here to ..
+       * gcc.dg/asan/pr66314.c: Here.  Use -fno-sanitize=all
+       to clear all sanitizers before -fsanitize=kernel-address.
+
 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        * gcc.target/aarch64/cinc_common_1.c: New test.
diff --git a/gcc/testsuite/gcc.dg/asan/pr66314.c b/gcc/testsuite/gcc.dg/asan/pr66314.c
new file mode 100644 (file)
index 0000000..3f6b12c
--- /dev/null
@@ -0,0 +1,33 @@
+/* { dg-do compile } */
+/* { dg-options "-std=gnu89 -Os -fprofile-arcs -fno-sanitize=all -fsanitize=kernel-address" } */
+
+char *a;
+int d;
+
+static int
+fn1 (int b, int c)
+{
+  while (a)
+    if (*a)
+      return -126;
+  if (b)
+    return -12;
+  if (c == -12)
+    return c;
+}
+
+void
+fn2 (int b, int c)
+{
+  for (;;)
+    {
+      d = fn1 (b, c);
+      switch (d)
+        {
+        case -126:
+          continue;
+        default:
+          return;
+        }
+    }
+}
diff --git a/gcc/testsuite/gcc.dg/pr66314.c b/gcc/testsuite/gcc.dg/pr66314.c
deleted file mode 100644 (file)
index f74ab5b..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-std=gnu89 -Os -fprofile-arcs -fsanitize=kernel-address" } */
-
-char *a;
-int d;
-
-static int
-fn1 (int b, int c)
-{
-  while (a)
-    if (*a)
-      return -126;
-  if (b)
-    return -12;
-  if (c == -12)
-    return c;
-}
-
-void
-fn2 (int b, int c)
-{
-  for (;;)
-    {
-      d = fn1 (b, c);
-      switch (d)
-        {
-        case -126:
-          continue;
-        default:
-          return;
-        }
-    }
-}