brintos

brintos / llvm-project-archived public Read only

0
0
Text · 346 B · f1c95c4 Raw
18 lines · c
1// Check that the CHECK lines are generated before the definition and not the declaration2// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu %s -emit-llvm -o - | FileCheck %s3 4int foo(int arg);5 6void empty_function(void);7 8int main(void) {9  empty_function();10  return foo(1);11}12 13int foo(int arg) {14  return arg;15}16 17void empty_function(void) {}18