view test/Other/link-opts.ll @ 17:5e1f5bc27634

remove codeFlag for llvm type and add __CodeTy
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Sat, 05 Oct 2013 22:04:18 +0900
parents 9ad51c7bc036
children
line wrap: on
line source

;RUN: opt -S -std-link-opts < %s | FileCheck %s
; Simple test to check that -std-link-opts keeps only the main function.

; CHECK-NOT: define
; CHECK: define void @main
; CHECK-NOT: define
define void @main() {
  ret void
}

define void @foo() {
  ret void
}