blob: 7be2ad3cc7a5e2d19d1a14b8ded20d5c91d95994 [file] [log] [blame]
Joerg Sonnenberger4fe497d2011-05-13 21:12:10 +00001// RUN: %clang_cc1 -triple=i686-pc-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefix=LINUX
2// RUN: %clang_cc1 -triple=i686-apple-darwin9 -emit-llvm %s -o - | FileCheck %s --check-prefix=DARWIN
3
4char *strerror(int) asm("alias");
5
6void test(void)
7{
8 strerror(-1);
9}
10
11// LINUX: declare i8* @alias(i32)
12// DARWIN: declare i8* @"\01alias"(i32)