Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/usr.bin/cc amend test case to also check for -fprofile...



details:   https://anonhg.NetBSD.org/src/rev/bd888afd0271
branches:  trunk
changeset: 835679:bd888afd0271
user:      maya <maya%NetBSD.org@localhost>
date:      Mon Sep 03 21:54:57 2018 +0000

description:
amend test case to also check for -fprofile-generate
(clang also supports this flag)

PR toolchain/53567

diffstat:

 tests/usr.bin/cc/t_hello.sh |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r b06281e377ad -r bd888afd0271 tests/usr.bin/cc/t_hello.sh
--- a/tests/usr.bin/cc/t_hello.sh       Mon Sep 03 21:29:30 2018 +0000
+++ b/tests/usr.bin/cc/t_hello.sh       Mon Sep 03 21:54:57 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_hello.sh,v 1.6 2017/05/31 11:08:35 martin Exp $
+#      $NetBSD: t_hello.sh,v 1.7 2018/09/03 21:54:57 maya Exp $
 #
 # Copyright (c) 2011 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -73,6 +73,8 @@
 EOF
        atf_check -s exit:0 -o ignore -e ignore cc -o hello -pg test.c
        atf_check -s exit:0 -o inline:"hello world\n" ./hello
+       atf_check -s exit:0 -o ignore -e ignore cc -o hello2 -fprofile-generate test.c
+       atf_check -s exit:0 -o inline:"hello world\n" ./hello2
 }
 
 hello_pic_body() {



Home | Main Index | Thread Index | Old Index