summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/hidden-alias-to-internal-function.c
blob: 93f17e53dcde87cdfc39718726e2e2c4e1ea5324 (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -o - -x c %s | FileCheck %s
// Reproduce the crash in PR19760.
static void foo(void) {}
void bar(void) __attribute__((alias("foo")))
__attribute__((visibility("hidden")));

// CHECK: @bar = hidden alias void (), void ()* @foo
// CHECK: define internal void @foo()