Need a test case that tests DWARF with .o in .a files test/functionalities/archives: Produces libfoo.a from a.o and b.o. Test breaking inside functions defined inside the libfoo.a BSD Archive. test/make/makefile.rules: Some additional rules to sepcify archive building. For example: ARCHIVE_NAME := libfoo.a ARCHIVE_C_SOURCES := a.c b.c llvm-svn: 148066
18 lines
523 B
C
18 lines
523 B
C
//===-- main.c --------------------------------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
#include <stdio.h>
|
|
|
|
extern int a(int);
|
|
extern int b(int);
|
|
int main (int argc, char const *argv[])
|
|
{
|
|
printf ("a(1) returns %d\n", a(1));
|
|
printf ("b(2) returns %d\n", b(2));
|
|
}
|