2009-11-20 00:32:16 +00:00
|
|
|
// RUN: %llvmgcc %s -c -Os -m32 -emit-llvm -o - | llc -march=x86 -mtriple=i386-apple-darwin10 | FileCheck %s -check-prefix=DARWIN32
|
2009-11-20 02:52:08 +00:00
|
|
|
// RUN: %llvmgcc %s -c -Os -m64 -emit-llvm -o - | llc -march=x86-64 -mtriple=x86_64-apple-darwin10 | FileCheck %s -check-prefix=DARWIN64
|
2010-01-06 05:49:26 +00:00
|
|
|
// XTARGET: darwin
|
2009-11-20 00:32:16 +00:00
|
|
|
|
|
|
|
extern void func(const char *, const char *);
|
|
|
|
|
|
|
|
void long_function_name() {
|
|
|
|
func("%s: the function name", __func__);
|
|
|
|
}
|
|
|
|
|
2010-04-28 19:58:07 +00:00
|
|
|
// DARWIN64: .align 4
|
2009-11-20 00:32:16 +00:00
|
|
|
// DARWIN64: ___func__.
|
|
|
|
// DARWIN64: .asciz "long_function_name"
|
|
|
|
|
2010-04-28 19:58:07 +00:00
|
|
|
// DARWIN32: .align 4
|
2009-11-20 00:32:16 +00:00
|
|
|
// DARWIN32: ___func__.
|
|
|
|
// DARWIN32: .asciz "long_function_name"
|