Duncan P. N. Exon Smith | 6f782b1 | 2014-05-20 19:20:23 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -o - -x c %s | FileCheck %s |
Duncan P. N. Exon Smith | d22b97c | 2014-05-20 19:04:31 +0000 | [diff] [blame] | 2 | // Reproduce the crash in PR19760. |
| 3 | static void foo(void) {} |
| 4 | void bar(void) __attribute__((alias("foo"))) |
| 5 | __attribute__((visibility("hidden"))); |
| 6 | |
David Blaikie | fc47355 | 2015-09-11 03:22:18 +0000 | [diff] [blame] | 7 | // CHECK: @bar = hidden alias void (), void ()* @foo |
Duncan P. N. Exon Smith | d22b97c | 2014-05-20 19:04:31 +0000 | [diff] [blame] | 8 | // CHECK: define internal void @foo() |