Compiler projects using llvm
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -passes=globalopt %s | FileCheck %s

@glob = external global i16, align 1

define void @beth() {
; CHECK-LABEL: @beth(
; CHECK-NEXT:  entry:
; CHECK-NEXT:    ret void
;
entry:
  ret void

notreachable:
  %patatino = select i1 undef, i16* @glob, i16* %patatino
  br label %notreachable
}