aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/paren-init14.C
blob: 837f953126063ff15c2e128fec9b06fecbb56d39 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/91363 - P0960R3: Parenthesized initialization of aggregates.
// { dg-do compile { target c++11 } }

struct A {
  int x;
  int y;
  A(int, int) = delete;
};

A a(1, 2); // { dg-error "use of deleted function" }