PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / g++.dg / Wattributes-4.C
blobc925225d3a89eef735bb79c4fe456112f1e93d78
1 // PR c++/83322 - ICE: tree check: expected class ‘type’, have ‘exceptional’
2 // (baselink) in diag_attr_exclusions, at attribs.c:393
3 // { dg-do compile }
4 // { dg-options "-Wattributes" }
6 #define ATTR(list) __attribute__ (list)
8 // Test case from comment #0.
9 struct A0
11   template <class T> operator T();
12   ATTR ((always_inline)) operator int();
15 // Test case from comment #4.
16 struct A1
18   void foo();
21 struct B
23   bool foo;
26 struct C: A1, B
28   ATTR ((warn_unused_result)) int foo ();