Debian Codegraph @

clang/test/utils/update_cc_test_checks/Inputs/def-and-decl.c

raw
1 // Check that the CHECK lines are generated before the definition and not the declaration
2 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu %s -emit-llvm -o - | FileCheck %s
3
4 int foo(int arg);
5
6 void empty_function(void);
7
8 int main(void) {
9 empty_function();
10 return foo(1);
11 }
12
13 int foo(int arg) {
14 return arg;
15 }
16
17 void empty_function(void) {}