<div>Running this test on Windows is problematic because of the driver running gcc.  Would revising it to this have it still test what is needed?:</div>
<div> </div>
<div>Index: test/SemaTemplate/example-dynarray.cpp<br>===================================================================<br>--- test/SemaTemplate/example-dynarray.cpp (revision 85809)<br>+++ test/SemaTemplate/example-dynarray.cpp (working copy)<br>
@@ -1,4 +1,4 @@<br>-// RUN: clang %s -o %t<br>+// RUN: clang-cc -emit-llvm-only %s<br> #include <stddef.h><br> #include <stdlib.h><br> #include <assert.h></div>
<div> </div>
<div>If so I can check it in.<br></div>
<div>Experimentally, I set up my system to have MinGW's gcc in the PATH, but here is the test output:</div>
<div> </div>
<div>1>FAIL: Clang::SemaTemplate/example-dynarray.cpp (1645 of 1717)<br>1>******************** TEST 'Clang::SemaTemplate/example-dynarray.cpp' FAILED ********************<br>1>Script:<br>1>--<br>1>C:/Tools/llvm/bin/Debug\clang.EXE C:\Tools\llvm\tools\clang\test\SemaTemplate\example-dynarray.cpp -o C:\Tools\llvm\tools\clang\test\SemaTemplate\Output\example-dynarray.cpp.tmp<br>
1>--<br>1>Exit Code: 1<br>1>Command Output (stdout):<br>1>--<br>1>Command 0: "C:/Tools/llvm/bin/Debug\clang.EXE" "C:\Tools\llvm\tools\clang\test\SemaTemplate\example-dynarray.cpp" "-o" "C:\Tools\llvm\tools\clang\test\SemaTemplate\Output\example-dynarray.cpp.tmp"<br>
1>Command 0 Result: 1<br>1>Command 0 Output:<br>1>Command 0 Stderr:<br>1>/tmp/cc-000000.s: Assembler messages:<br>1>/tmp/cc-000000.s:4: Error: no such instruction: `align 16'<br>1>/tmp/cc-000000.s:25: Error: no such instruction: `align 16'<br>
1>/tmp/cc-000000.s:43: Error: no such instruction: `align 16'<br>1>/tmp/cc-000000.s:626: Error: no such instruction: `align 2'<br>1>/tmp/cc-000000.s:650: Error: no such instruction: `align 2'<br>1>/tmp/cc-000000.s:689: Error: no such instruction: `align 2'<br>
1>/tmp/cc-000000.s:823: Error: no such instruction: `align 2'<br>1>/tmp/cc-000000.s:850: Error: no such instruction: `align 2'<br>1>/tmp/cc-000000.s:870: Error: no such instruction: `align 2'<br>1>/tmp/cc-000000.s:890: Error: no such instruction: `align 2'<br>
1>/tmp/cc-000000.s:915: Error: no such instruction: `align 2'<br>1>/tmp/cc-000000.s:937: Error: no such instruction: `align 2'<br>1>/tmp/cc-000000.s:1015: Error: no such instruction: `align 2'<br>1>/tmp/cc-000000.s:1119: Error: no such instruction: `align 2'<br>
1>/tmp/cc-000000.s:1189: Error: no such instruction: `align 2'<br>1>/tmp/cc-000000.s:1221: Error: no such instruction: `align 2'<br>1>/tmp/cc-000000.s:1245: Error: no such instruction: `align 2'<br>1>/tmp/cc-000000.s:1283: Error: no such instruction: `align 2'<br>
1>/tmp/cc-000000.s:1424: Error: no such instruction: `align 2'<br>1>/tmp/cc-000000.s:1447: Error: no such instruction: `align 2'<br>1>/tmp/cc-000000.s:1479: Error: no such instruction: `align 2'<br>1>/tmp/cc-000000.s:1518: Error: no such instruction: `align 2'<br>
1>/tmp/cc-000000.s:1545: Error: no such instruction: `align 2'<br>1>/tmp/cc-000000.s:1583: Error: no such instruction: `align 2'<br>1>/tmp/cc-000000.s:1615: Error: no such instruction: `align 2'<br>1>/tmp/cc-000000.s:1645: Error: no such instruction: `align 2'<br>
1>/tmp/cc-000000.s:1668: Error: no such instruction: `align 16'<br>1>/tmp/cc-000000.s:1670: Error: no such instruction: `db "d\000i\000.\000s\000i\000z\000e\000(\000)\000 \000=\000=\000 \0005\000\000\000"'<br>
1>/tmp/cc-000000.s:1671: Error: no such instruction: `align 16'<br>1>/tmp/cc-000000.s:1673: Error: no such instruction: `db "C\000:\000\\\000T\000o\000o\000l\000s\000\\\000l\000l\000v\000m\000\\\000t\000o\000o\000l\000s\000\\\000c\000l\000a\000n\000g\000\\\000t\000e\000s\000t\000\\\000S\000e\000m\000a\000T\000e\000m\000p\000l\000a\000t\000e\000\\\000e\000x\000a\000m\000p\000l\000e\000-\000d\000y\000n\000a\000r\000r\000a\000y\000.\000c\000p\000p\000\000\000"'<br>
1>/tmp/cc-000000.s:1674: Error: no such instruction: `align 16'<br>1>/tmp/cc-000000.s:1676: Error: no such instruction: `db "*\000I\000 \000=\000=\000 \000I\000 \000-\000 \000d\000i\000.\000b\000e\000g\000i\000n\000(\000)\000\000\000"'<br>
1>/tmp/cc-000000.s:1677: Error: no such instruction: `align 16'<br>1>/tmp/cc-000000.s:1679: Error: no such instruction: `db "d\000i\000[\000I\000]\000 \000=\000=\000 \000I\000\000\000"'<br>1>/tmp/cc-000000.s:1680: Error: no such instruction: `align 16'<br>
1>/tmp/cc-000000.s:1682: Error: no such instruction: `db "d\000i\000.\000s\000i\000z\000e\000(\000)\000 \000=\000=\000 \0004\000\000\000"'<br>1>/tmp/cc-000000.s:1683: Error: no such instruction: `align 16'<br>
1>/tmp/cc-000000.s:1685: Error: no such instruction: `db "d\000i\0002\000.\000s\000i\000z\000e\000(\000)\000 \000=\000=\000 \0005\000\000\000"'<br>1>/tmp/cc-000000.s:1686: Error: no such instruction: `align 16'<br>
1>/tmp/cc-000000.s:1688: Error: no such instruction: `db "d\000i\000.\000b\000e\000g\000i\000n\000(\000)\000 \000!\000=\000 \000d\000i\0002\000.\000b\000e\000g\000i\000n\000(\000)\000\000\000"'<br>1>/tmp/cc-000000.s:1689: Error: no such instruction: `align 16'<br>
1>/tmp/cc-000000.s:1691: Error: no such instruction: `db "*\000I\000 \000=\000=\000 \000I\000 \000-\000 \000d\000i\0002\000.\000b\000e\000g\000i\000n\000(\000)\000\000\000"'<br>1>/tmp/cc-000000.s:1692: Error: no such instruction: `align 16'<br>
1>/tmp/cc-000000.s:1694: Error: no such instruction: `db "d\000i\0003\000.\000s\000i\000z\000e\000(\000)\000 \000=\000=\000 \0005\000\000\000"'<br>1>/tmp/cc-000000.s:1695: Error: no such instruction: `align 16'<br>
1>/tmp/cc-000000.s:1697: Error: no such instruction: `db "d\000i\000.\000b\000e\000g\000i\000n\000(\000)\000 \000!\000=\000 \000d\000i\0003\000.\000b\000e\000g\000i\000n\000(\000)\000\000\000"'<br>1>/tmp/cc-000000.s:1698: Error: no such instruction: `align 16'<br>
1>/tmp/cc-000000.s:1700: Error: no such instruction: `db "*\000I\000 \000=\000=\000 \000I\000 \000-\000 \000d\000i\0003\000.\000b\000e\000g\000i\000n\000(\000)\000\000\000"'<br>1>/tmp/cc-000000.s:1701: Error: no such instruction: `align 16'<br>
1>/tmp/cc-000000.s:1703: Error: no such instruction: `db "d\000i\0004\000.\000s\000i\000z\000e\000(\000)\000 \000=\000=\000 \0000\000\000\000"'<br>1>/tmp/cc-000000.s:1704: Error: no such instruction: `align 16'<br>
1>/tmp/cc-000000.s:1706: Error: no such instruction: `db "d\000i\0004\000.\000s\000i\000z\000e\000(\000)\000 \000=\000=\000 \0005\000\000\000"'<br>1>/tmp/cc-000000.s:1707: Error: no such instruction: `align 16'<br>
1>/tmp/cc-000000.s:1709: Error: no such instruction: `db "d\000i\000.\000b\000e\000g\000i\000n\000(\000)\000 \000!\000=\000 \000d\000i\0004\000.\000b\000e\000g\000i\000n\000(\000)\000\000\000"'<br>1>/tmp/cc-000000.s:1710: Error: no such instruction: `align 16'<br>
1>/tmp/cc-000000.s:1712: Error: no such instruction: `db "*\000I\000 \000=\000=\000 \000I\000 \000-\000 \000d\000i\0004\000.\000b\000e\000g\000i\000n\000(\000)\000\000\000"'<br>1>/tmp/cc-000000.s:1713: Error: no such instruction: `align 16'<br>
1>/tmp/cc-000000.s:1715: Error: no such instruction: `db "d\000i\0004\000 \000=\000=\000 \000d\000i\000\000\000"'<br>1>/tmp/cc-000000.s:1716: Error: no such instruction: `align 16'<br>1>/tmp/cc-000000.s:1718: Error: no such instruction: `db "d\000i\0004\000 \000!\000=\000 \000d\000i\000\000\000"'<br>
1>/tmp/cc-000000.s:1719: Error: no such instruction: `align 16'<br>1>/tmp/cc-000000.s:1721: Error: no such instruction: `db "d\000p\000.\000s\000i\000z\000e\000(\000)\000 \000=\000=\000 \0001\000\000\000"'<br>
1>clang: error: assembler command failed with exit code 1 (use -v to see invocation)<br>1>--<br>1>Command Output (stderr):<br>1>--<br>1>--<br></div>
<div>Or is there a different gcc I should be using, or setup?</div>
<div><br clear="all">-John</div>
<div><br>-- <br>John Thompson<br><a href="mailto:John.Thompson.JTSoftware@gmail.com" target="_blank">John.Thompson.JTSoftware@gmail.com</a><br><br></div>