1! UNSUPPORTED: system-windows, system-darwin, system-aix 2 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 6 7! TODO: potentially add further checks to ensure that proper 8! linker error messages are detected and checked via 9! FileCheck. 10 11program main_dupes 12 ! Irrelevant what to do in here. 13 ! Test is supposed to fail at link time. 14end program main_dupes 15