2017-07-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
PR tree-optimization/81162
* gcc.dg/pr81162.c: Move this to...
* gcc.dg/ubsan/pr81162.c: ...here.
From-SVN: r250284
+2017-07-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
+
+ PR tree-optimization/81162
+ * gcc.dg/pr81162.c: Move this to...
+ * gcc.dg/ubsan/pr81162.c: ...here.
+
2017-07-17 Volker Reichelt <v.reichelt@netcologne.de>
* g++.dg/diagnostic/friend1.C: New test.
+++ /dev/null
-/* PR tree-optimization/81162 */
-/* { dg-do run } */
-/* { dg-options "-fsanitize=undefined -O2" } */
-
-short s;
-int i1 = 1;
-int i2 = 1;
-unsigned char uc = 147;
-
-int main() {
- s = (-uc + 2147483647) << 0;
- if (9031239389974324562ULL >= (-((i1 && i2) + uc) ^ -21096) ) {
- return 0;
- } else {
- return -1;
- }
-}
--- /dev/null
+/* PR tree-optimization/81162 */
+/* { dg-do run } */
+/* { dg-options "-fsanitize=undefined -O2" } */
+
+short s;
+int i1 = 1;
+int i2 = 1;
+unsigned char uc = 147;
+
+int main() {
+ s = (-uc + 2147483647) << 0;
+ if (9031239389974324562ULL >= (-((i1 && i2) + uc) ^ -21096) ) {
+ return 0;
+ } else {
+ return -1;
+ }
+}