blob: 4e33f4f2aeba3f703b70617f3fb1b9c02a3e3aa5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
! UNSUPPORTED: system-windows
! RUN: %flang -x ir -o %t.c-object -c %S/Inputs/no_duplicate_main.ll
! RUN: %flang -o %t -c %s
! RUN: not %flang -o %t.exe %t %t.c-object 2>&1
! TODO: potentially add further checks to ensure that proper
! linker error messages are detected and checked via
! FileCheck.
program main_dupes
! Irrelevant what to do in here.
! Test is supposed to fail at link time.
end program main_dupes
|