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

int f(int restrict);

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