Fix gcc.dg/pr92301.c on targets that don't support argc/argv.

2020-03-25  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/testsuite/
	* gcc.dg/pr92301.c (main): Allow argc to be 0 to support
	embedded targets.
This commit is contained in:
Sandra Loosemore 2020-03-25 08:01:50 -07:00
parent 83dfa06cb5
commit 0fca105f8c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2020-03-25 Sandra Loosemore <sandra@codesourcery.com>
* gcc.dg/pr92301.c (main): Allow argc to be 0 to support
embedded targets.
2020-03-25 Jakub Jelinek <jakub@redhat.com>
PR debug/94296

View File

@ -23,7 +23,7 @@ int main(int argc, char **argv)
for (unsigned i = 0; i < N; i++)
a[i] = i;
if (argc == 1)
if (argc < 2)
m = 17;
unsigned int r = df_count_refs(1);