• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2019 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5package main
6
7import (
8	"testing"
9)
10
11func TestErrorOnFstatCheckFlag(t *testing.T) {
12	withTestContext(t, func(ctx *testContext) {
13		stderr := ctx.mustFail(callCompiler(ctx, ctx.cfg,
14			ctx.newCommand(gccX86_64, "-fstack-check", mainCc)))
15		if err := verifyNonInternalError(stderr,
16			`option "-fstack-check" is not supported; crbug/485492`); err != nil {
17			t.Fatal(err)
18		}
19	})
20}
21