llvm-project/clang/test/CodeGen/Inputs/debug-info-file-checksum-line.cpp
Aaron Ballman 1c2558021c Use functions with prototypes when appropriate; NFC
A significant number of our tests in C accidentally use functions
without prototypes. This patch converts the function signatures to have
a prototype for the situations where the test is not specific to K&R C
declarations. e.g.,

  void func();

becomes

  void func(void);

This is the final batch of tests being updated to add prototypes,
hopefully.
2022-02-24 15:30:13 -05:00

10 lines
95 B
C++

int foo(int x) {
return x+1;
}
#line 100
void test1(void) {}
#line 200
void test2(void) {}