Commit 095578b5 by Jakub Jelinek Committed by Jakub Jelinek

* g++.dg/gomp/declare-variant-6.C: New test.

From-SVN: r277620
parent 3f85ff83
2019-10-30 Jakub Jelinek <jakub@redhat.com>
* g++.dg/gomp/declare-variant-6.C: New test.
2019-10-30 Martin Liska <mliska@suse.cz>
* c-c++-common/Wstringop-truncation-4.c: Disable IPA ICF.
......
// Test parsing of #pragma omp declare variant
// { dg-do compile { target c++11 } }
// { dg-additional-options "-fdump-tree-gimple" }
constexpr int score (int x) { return x; }
void f0 ();
#pragma omp declare variant (f0) match (user={condition(score(1))})
void f1 ();
void f2 ();
#pragma omp declare variant (f2) match (user={condition(score(1):1)})
void f3 ();
void f4 ();
#pragma omp declare variant (f4) match (user={condition(score(1):score(1))})
void f5 ();
void f6 ();
#pragma omp declare variant (f6) match (user={condition(score(1)==0)})
void f7 ();
void
test ()
{
f1 (); // { dg-final { scan-tree-dump-times "f0 \\\(\\\);" 1 "gimple" } }
f3 (); // { dg-final { scan-tree-dump-times "f2 \\\(\\\);" 1 "gimple" } }
f5 (); // { dg-final { scan-tree-dump-times "f4 \\\(\\\);" 1 "gimple" } }
f7 (); // { dg-final { scan-tree-dump-times "f7 \\\(\\\);" 1 "gimple" } }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment