summaryrefslogtreecommitdiff
path: root/clang/test/Sema/gnu89.c
blob: 189e6b0097a9376cbd1810c92273e5a5f94a5976 (about) (plain)
1
2
3
4
5
// RUN: %clang_cc1 %s -std=gnu89 -pedantic -fsyntax-only -verify

int f(int restrict);

void main() {} // expected-warning {{return type of 'main' is not 'int'}}