Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / crash3.C
blobc49505313280409eec2eb8e2340d148dd19a1ab5
1 // { dg-do assemble  }
2 // Bug: g++ tries to generate initialization semantics for a Node from an int,
3 // and fails.
5 struct Node                     // { dg-message "note" "" { target c++17_down } }
7   Node* child[2];
8 };
10 void bug(int i)
12   Node* q = new Node(i);        // { dg-error "no matching" "" { target c++17_down }  } 
13 // { dg-error "array must be initialized" "" { target c++2a } .-1 }