2014-05-21 03:20:23 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -o - -x c %s | FileCheck %s
|
2014-05-21 03:04:31 +08:00
|
|
|
// Reproduce the crash in PR19760.
|
|
|
|
static void foo(void) {}
|
|
|
|
void bar(void) __attribute__((alias("foo")))
|
|
|
|
__attribute__((visibility("hidden")));
|
|
|
|
|
2015-09-11 11:22:18 +08:00
|
|
|
// CHECK: @bar = hidden alias void (), void ()* @foo
|
2014-05-21 03:04:31 +08:00
|
|
|
// CHECK: define internal void @foo()
|