Home | History | Annotate | Download | only in dead-strip
      1 //===-- 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 
     12 int f1 (char *s);
     13 int f2 (char *s);
     14 int f3 (char *s);
     15 
     16 
     17 // We want f1 to start on line 20
     18 int 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 30, this should get stripped
     28 int 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 40
     38 int 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 50
     48 int main (int argc, const char * argv[])
     49 {
     50     f1("carp");
     51     f3("dong");
     52     return 0;
     53 }
     54