brintos

brintos / llvm-project-archived public Read only

0
0
Text · 586 B · 0e9ad0e Raw
13 lines · c
1// RUN: %clang_cc1 %s -fsyntax-only -verify -Wno-strict-prototypes2int f(int a) { return 0; } // expected-note {{previous definition is here}}3int f(int);4int f(int a) { return 0; } // expected-error {{redefinition of 'f'}}5 6int foo(x) { // expected-error {{parameter 'x' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int}}7  return 0;8}9int x = 1;10 11extern inline int g(void) { return 0; } // expected-note{{previous definition}}12int g(void) { return 0; } // expected-error{{redefinition of a 'extern inline' function 'g' is not supported in C99 mode}}13