Home | History | Annotate | Download | only in NameAnonFunctions
      1 ; RUN: opt -S -name-anon-functions < %s | FileCheck %s
      2 
      3 
      4 ; foo contribute to the unique hash for the module
      5 define void @foo() {
      6     ret void
      7 }
      8 
      9 ; bar is internal, and does not contribute to the unique hash for the module
     10 define internal void @bar() {
     11     ret void
     12 }
     13 
     14 ; CHECK: define void @anon.acbd18db4cc2f85cedef654fccc4a4d8.0()
     15 ; CHECK: define void @anon.acbd18db4cc2f85cedef654fccc4a4d8.1()
     16 ; CHECK: define void @anon.acbd18db4cc2f85cedef654fccc4a4d8.2()
     17 
     18 define void @0() {
     19     ret void
     20 }
     21 define void @1() {
     22     ret void
     23 }
     24 define void @2() {
     25     ret void
     26 }
     27 
     28