1 //===-- main.c --------------------------------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 #include <stdio.h> 9 10 11 int f1 (char *s); 12 int f2 (char *s); 13 int f3 (char *s); 14 15 16 // We want f1 to start on line 20 17 int f1 (char *s) 18 { 19 return printf("f1: %s\n", s); 20 } 21 22 23 24 25 26 // We want f2 to start on line 30 27 int f2 (char *s) 28 { 29 return printf("f2: %s\n", s); 30 } 31 32 33 34 35 36 // We want f3 to start on line 40 37 int f3 (char *s) 38 { 39 return printf("f3: %s\n", s); 40 } 41 42 43 44 45 46 // We want main to start on line 50 47 int main (int argc, const char * argv[]) 48 { 49 f1("carp"); 50 f2("ding"); 51 f3("dong"); 52 return 0; 53 } 54