summaryrefslogtreecommitdiff
path: root/test/Sema/typedef-prototype.c
blob: 98b1ab8099975674b2bd42eef7e9abf44ffbc10e (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics

typedef int unary_int_func(int arg);
unary_int_func add_one;

int add_one(int arg) {
  return arg + 1;
}