brintos

brintos / llvm-project-archived public Read only

0
0
Text · 522 B · 32ae139 Raw
16 lines · c
1// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c992 3int f3(y, x,       // expected-warning {{a function definition without a prototype is deprecated in all versions of C and is not supported in C23}}4       x)          // expected-error {{redefinition of parameter}}5  int y, 6      x,           // expected-note {{previous declaration is here}}7      x;           // expected-error {{redefinition of parameter}}8{9  return x + y; 10} 11 12void f4(void) { 13  f3 (1, 1, 2, 3, 4); // expected-warning{{too many arguments}}14}15 16