From 19aec65ae13c991d76d29076f4088c0a065e241b Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 25 May 2022 12:55:15 +0200 Subject: [PATCH] Fix misspelled default This fixes misspelled defaut: in switch statements in three new testcases. 2022-05-25 Richard Biener * gcc.dg/loop-unswitch-10.c: Fix misspelled defaut: * gcc.dg/loop-unswitch-11.c: Likewise. * gcc.dg/loop-unswitch-14.c: Likewise. --- gcc/testsuite/gcc.dg/loop-unswitch-10.c | 2 +- gcc/testsuite/gcc.dg/loop-unswitch-11.c | 2 +- gcc/testsuite/gcc.dg/loop-unswitch-14.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/gcc.dg/loop-unswitch-10.c b/gcc/testsuite/gcc.dg/loop-unswitch-10.c index 5e4f16e2935..395167ee6f8 100644 --- a/gcc/testsuite/gcc.dg/loop-unswitch-10.c +++ b/gcc/testsuite/gcc.dg/loop-unswitch-10.c @@ -27,7 +27,7 @@ foo(double *a, double *b, double *c, double *d, double *r, int size, int order) tmp = 3 * a[i] + 2 * b[i] - c[i]; tmp2 = b[i] - 2 * c[i] + 8 * d[i]; break; - defaut: + default: __builtin_unreachable (); } diff --git a/gcc/testsuite/gcc.dg/loop-unswitch-11.c b/gcc/testsuite/gcc.dg/loop-unswitch-11.c index 04da28c0762..422a94227b2 100644 --- a/gcc/testsuite/gcc.dg/loop-unswitch-11.c +++ b/gcc/testsuite/gcc.dg/loop-unswitch-11.c @@ -27,7 +27,7 @@ foo(double *a, double *b, double *c, double *d, double *r, int size, int order) tmp = 3 * a[i] + 2 * b[i] - c[i]; tmp2 = b[i] - 2 * c[i] + 8 * d[i]; break; - defaut: + default: __builtin_unreachable (); } diff --git a/gcc/testsuite/gcc.dg/loop-unswitch-14.c b/gcc/testsuite/gcc.dg/loop-unswitch-14.c index 129805eb918..d9d31680cb8 100644 --- a/gcc/testsuite/gcc.dg/loop-unswitch-14.c +++ b/gcc/testsuite/gcc.dg/loop-unswitch-14.c @@ -30,7 +30,7 @@ foo(double *a, double *b, double *c, double *d, double *r, int size, int order) tmp = 3 * a[i] + 2 * b[i] - c[i]; tmp2 = b[i] - 2 * c[i] + 8 * d[i]; break; - defaut: + default: __builtin_unreachable (); } -- 2.47.2