summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/call3.C
blob: 13bca7170d6a8b18288ad4ee99939df5f2459f48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/26036
// Origin: <ben@pc-doctor.com>
// { dg-do compile }

struct A
{
  int i;
};

A foo(int);       /* { dg-message "note: declared here" } */

int j = foo().i;  // { dg-error "too few arguments" }