aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/unsupported_flags_test.go
blob: 0b174a9bed30ab46a3dcbba250e792ef0ce761f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package main

import (
	"testing"
)

func TestErrorOnFstatCheckFlag(t *testing.T) {
	withTestContext(t, func(ctx *testContext) {
		_, err := calcCompilerCommandAndCompareToOld(ctx, ctx.cfg,
			ctx.newCommand(gccX86_64, "-fstack-check", mainCc))
		if err == nil || err.Error() != `option "-fstack-check" is not supported; crbug/485492` {
			t.Errorf("Expected error not found. Got: %s", err)
		}
	})
}