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