aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/fntype-decl.cpp
blob: d9fb8bbb5935b4a862dc941ea3560c0bd122ee31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: clang -fsyntax-only -verify %s

// PR2942
typedef void fn(int);
fn f;

int g(int x, int y);
int g(int x, int y = 2);

typedef int g_type(int, int);
g_type g;

int h(int x) {
  return g(x);
}