blob: 1791e7c26587fc15b69ede643c6fce0a81257d11 [file] [log] [blame]
Chris Lattner24943d22010-06-08 16:52:24 +00001//===-- main.c --------------------------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9#include <stdio.h>
10
11
12int f1 (char *s);
13int f2 (char *s);
14int f3 (char *s);
15
16
17// We want f1 to start on line 10
18int f1 (char *s)
19{
20 return printf("f1: %s\n", s);
21}
22
23
24
25
26
27// We want f2 to start on line 20
28int f2 (char *s)
29{
30 return printf("f2: %s\n", s);
31}
32
33
34
35
36
37// We want f3 to start on line 30
38int f3 (char *s)
39{
40 return printf("f3: %s\n", s);
41}
42
43
44
45
46
47// We want main to start on line 40
48int main (int argc, const char * argv[])
49{
50 f1("carp");
51 f2("ding");
52 f3("dong");
53 return 0;
54}