[llvm-commits] [llvm] r89417 - /llvm/trunk/test/FrontendC/cstring-align.c
Bill Wendling
isanbard at gmail.com
Thu Nov 19 16:32:17 PST 2009
Author: void
Date: Thu Nov 19 18:32:16 2009
New Revision: 89417
URL: http://llvm.org/viewvc/llvm-project?rev=89417&view=rev
Log:
Testcase for r89415.
Added:
llvm/trunk/test/FrontendC/cstring-align.c
Added: llvm/trunk/test/FrontendC/cstring-align.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/cstring-align.c?rev=89417&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC/cstring-align.c (added)
+++ llvm/trunk/test/FrontendC/cstring-align.c Thu Nov 19 18:32:16 2009
@@ -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"
More information about the llvm-commits
mailing list