summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/asm-label.c
blob: 7be2ad3cc7a5e2d19d1a14b8ded20d5c91d95994 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -triple=i686-pc-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefix=LINUX
// RUN: %clang_cc1 -triple=i686-apple-darwin9 -emit-llvm %s -o - | FileCheck %s --check-prefix=DARWIN

char *strerror(int) asm("alias");

void test(void)
{
	strerror(-1);
}

// LINUX: declare i8* @alias(i32)
// DARWIN: declare i8* @"\01alias"(i32)
OpenPOWER on IntegriCloud