shithub: scc

Download patch

ref: 2f998515cd50f7d48a4271ffa9ef1d9808dd8503
parent: 1f62c6cf8be63082f9674cabd731a01790d0bc74
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Sep 25 10:41:43 EDT 2015

Add update script for tests

Changes in the IR are common, and some of them may
fail all the test, so a scrip that update the tests
with the current output of cc1 is a good thing.

--- /dev/null
+++ b/cc1/tests/update.sh
@@ -1,0 +1,8 @@
+#!/bin/sh
+
+for i in *.c
+do
+	(echo '/^output/+;/^\*\//-c'
+	../cc1 -w $i 2>&1
+	printf ".\nw\n") | ed -s $i
+done
--