Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / hidden-alias-to-internal-function.c
blob3e9fc940d6d2299617a4d8387aa421ba63a74ba0
1 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -o - -x c %s | FileCheck %s
2 // Reproduce the crash in PR19760.
3 static void foo(void) {}
4 void bar(void) __attribute__((alias("foo")))
5 __attribute__((visibility("hidden")));
7 // CHECK: @bar = hidden alias void (), ptr @foo
8 // CHECK: define internal void @foo()