mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Testcase for r89415.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89417 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0dde97156c
commit
b3fa7e4e40
16
test/FrontendC/cstring-align.c
Normal file
16
test/FrontendC/cstring-align.c
Normal file
@ -0,0 +1,16 @@
|
||||
// RUN: %llvmgcc %s -c -Os -m32 -emit-llvm -o - | llc -march=x86 -mtriple=i386-apple-darwin10 | FileCheck %s -check-prefix=DARWIN32
|
||||
// RUN: %llvmgcc %s -c -Os -m64 -emit-llvm -o - | llc -march=x86 -mtriple=i386-apple-darwin10 | FileCheck %s -check-prefix=DARWIN64
|
||||
|
||||
extern void func(const char *, const char *);
|
||||
|
||||
void long_function_name() {
|
||||
func("%s: the function name", __func__);
|
||||
}
|
||||
|
||||
// DARWIN64: .align 3
|
||||
// DARWIN64: ___func__.
|
||||
// DARWIN64: .asciz "long_function_name"
|
||||
|
||||
// DARWIN32: .align 2
|
||||
// DARWIN32: ___func__.
|
||||
// DARWIN32: .asciz "long_function_name"
|
Loading…
Reference in New Issue
Block a user