Skip to content

Commit 40e51fa

Browse files
committed
Add test.
1 parent 1db7dc4 commit 40e51fa

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
; Test that we do not duplicate the UnifiedLTO module flag.
2+
;
3+
; RUN: %clang_cc1 -emit-llvm -flto=full -funified-lto -o - %s | FileCheck %s
4+
5+
; CHECK: !llvm.module.flags = !{!0, !1, !2, !3}
6+
!llvm.module.flags = !{!0, !1, !2, !3}
7+
8+
!0 = !{i32 1, !"wchar_size", i32 2}
9+
!1 = !{i32 7, !"frame-pointer", i32 2}
10+
!2 = !{i32 1, !"EnableSplitLTOUnit", i32 1}
11+
!3 = !{i32 1, !"UnifiedLTO", i32 1}

0 commit comments

Comments
 (0)