* c-c++-common/gomp/atomic-12.c: Skip for C++1z.
* c-c++-common/gomp/atomic-13.c: Likewise.
* c-c++-common/gomp/atomic-14.c: Likewise.
* c-c++-common/pr60439.c: Remove invalid code.
* g++.dg/expr/bitfield4.C: Robustify for C++1z.
* g++.dg/expr/bitfield5.C: Likewise.
* g++.dg/expr/bitfield6.C: Likewise.
* g++.dg/expr/bool1.C: Likewise.
* g++.dg/expr/bool3.C: Likewise.
* g++.dg/expr/lval3.C: Likewise.
* g++.dg/expr/lval4.C: Likewise.
* g++.old-deja/g++.jason/bool5.C: Likewise.
From-SVN: r240436
+2016-09-23 Marek Polacek <polacek@redhat.com>
+
+ * c-c++-common/gomp/atomic-12.c: Skip for C++1z.
+ * c-c++-common/gomp/atomic-13.c: Likewise.
+ * c-c++-common/gomp/atomic-14.c: Likewise.
+ * c-c++-common/pr60439.c: Remove invalid code.
+ * g++.dg/expr/bitfield4.C: Robustify for C++1z.
+ * g++.dg/expr/bitfield5.C: Likewise.
+ * g++.dg/expr/bitfield6.C: Likewise.
+ * g++.dg/expr/bool1.C: Likewise.
+ * g++.dg/expr/bool3.C: Likewise.
+ * g++.dg/expr/lval3.C: Likewise.
+ * g++.dg/expr/lval4.C: Likewise.
+ * g++.old-deja/g++.jason/bool5.C: Likewise.
+
2016-09-23 David Malcolm <dmalcolm@redhat.com>
PR preprocessor/77672
/* atomicvar should never be referenced in between the barrier and
following #pragma omp atomic_load. */
/* { dg-final { scan-tree-dump-not "barrier\[^#\]*atomicvar" "gimple" } } */
+/* { dg-skip-if "invalid in C++1z" { c++1z } } */
#ifdef __cplusplus
bool atomicvar, c;
/* atomicvar should never be referenced in between the barrier and
following #pragma omp atomic_load. */
/* { dg-final { scan-tree-dump-not "barrier\[^#\]*atomicvar" "gimple" } } */
+/* { dg-skip-if "invalid in C++1z" { c++1z } } */
#include "atomic-12.c"
/* PR middle-end/45423 */
/* { dg-do compile } */
/* { dg-options "-fopenmp -Wno-deprecated" } */
+/* { dg-skip-if "invalid in C++1z" { c++1z } } */
#ifdef __cplusplus
bool *baz ();
case 3:
break;
}
- switch (b++) /* { dg-warning "switch condition has" } */
- /* { dg-warning "is deprecated" "" { target c++ } 134 } */
- {
- case 3:
- break;
- }
}
void
void f(bool) {}
int main() {
- f(s.x++); // { dg-warning "deprecated" }
- f(++s.x); // { dg-warning "deprecated" }
+ f(s.x++); // { dg-warning "deprecated" "" { target { ! c++1z } } }
+ // { dg-error "forbidden" "" { target c++1z } 17 }
+ f(++s.x); // { dg-warning "deprecated" "" { target { ! c++1z } } }
+ // { dg-error "forbidden" "" { target c++1z } 19 }
}
S s;
int main() {
- s.x++; // { dg-warning "deprecated" }
+ s.x++; // { dg-warning "deprecated" "" { target { ! c++1z } } }
+ // { dg-error "forbidden" "" { target c++1z } 11 }
if (s.x != 1)
return 1;
- ++s.x; // { dg-warning "deprecated" }
+ ++s.x; // { dg-warning "deprecated" "" { target { ! c++1z } } }
+ // { dg-error "forbidden" "" { target c++1z } 15 }
if (s.x != 1)
return 2;
}
S s;
void f() {
- ++s.x = false; // { dg-warning "deprecated" }
+ ++s.x = false; // { dg-warning "deprecated" "" { target { ! c++1z } } }
+ // { dg-error "forbidden" "" { target c++1z } 10 }
}
my_bool b = false;
int i;
- b++; // { dg-warning "deprecated" }
- b++; // { dg-warning "deprecated" }
+ b++; // { dg-warning "deprecated" "" { target { ! c++1z } } }
+ // { dg-error "forbidden" "" { target c++1z } 13 }
+ b++; // { dg-warning "deprecated" "" { target { ! c++1z } } }
+ // { dg-error "forbidden" "" { target c++1z } 15 }
i = b;
if (i != 1)
abort ();
my_bool b = false;
int i;
- b++; // { dg-warning "deprecated" }
- b++; // { dg-warning "deprecated" }
+ b++; // { dg-warning "deprecated" "" { target { ! c++1z } } }
+ // { dg-error "forbidden" "" { target c++1z } 13 }
+ b++; // { dg-warning "deprecated" "" { target { ! c++1z } } }
+ // { dg-error "forbidden" "" { target c++1z } 15 }
i = b;
if (i != 1)
abort ();
{
bool i = 0;
i++ = 3; // { dg-error "" }
- // { dg-warning "deprecated" "" { target *-*-* } 6 }
+ // { dg-warning "deprecated" "" { target { ! c++1z } } 6 }
}
-
-
{
bool i = 0;
++i = 3;
- // { dg-warning "deprecated" "" { target *-*-* } 6 }
+ // { dg-warning "deprecated" "" { target { ! c++1z } } 6 }
+ // { dg-error "forbidden" "" { target c++1z } 6 }
}
-
-
int main ()
{
bool b = false;
- int i = b++; // { dg-warning "deprecated" }
+ int i = b++; // { dg-warning "deprecated" "" { target { ! c++1z } } }
+ // { dg-error "forbidden" "" { target c++1z } 5 }
if (i != false || b != true)
return 1;
- i = b++; // { dg-warning "deprecated" }
+ i = b++; // { dg-warning "deprecated" "" { target { ! c++1z } } }
+ // { dg-error "forbidden" "" { target c++1z } 9 }
if (i != true || b != true)
return 1;
}