@@ -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.
new file mode 100644
@@ -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;
+ }
+ }
+}
deleted file mode 100644
@@ -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;
- }
- }
-}