llvm/llvm/test/CodeGen/DirectX/legalize-module-flags2.ll

; RUN: opt -S -dxil-prepare -mtriple=dxil-unknown-shadermodel6.0-library %s | FileCheck %s

; CHECK: define void @main()
; Make sure behavior flag > 6 is fixed.
; CHECK:{i32 2, !"frame-pointer", i32 2}

; Function Attrs: nounwind memory(none)
define void @main() local_unnamed_addr #0 {
entry:
  ret void
}

attributes #0 = { nounwind memory(none) }
!llvm.module.flags = !{!0, !1}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 7, !"frame-pointer", i32 2}