1 // RUN: %clang_cc1 -verify -fopenmp -ast-print %s | FileCheck %s
2 // RUN: %clang_cc1 -fopenmp -emit-pch -o %t %s
3 // RUN: %clang_cc1 -fopenmp -include-pch %t -fsyntax-only -verify %s -ast-print | FileCheck %s
4 // expected-no-diagnostics
5 
6 #ifndef HEADER
7 #define HEADER
8 
9 #pragma omp declare simd aligned(b : 64)
10 #pragma omp declare simd simdlen(32) aligned(d, b)
11 #pragma omp declare simd inbranch, uniform(d) linear(val(s1, s2) : 32)
12 #pragma omp declare simd notinbranch simdlen(2), uniform(s1, s2) linear(d: s1)
13 void add_1(float *d, int s1, float *s2, double b[]) __attribute__((cold));
14 
15 // CHECK: #pragma omp declare simd notinbranch simdlen(2) uniform(s1, s2) linear(val(d): s1)
16 // CHECK-NEXT: #pragma omp declare simd inbranch uniform(d) linear(val(s1): 32) linear(val(s2): 32)
17 // CHECK-NEXT: #pragma omp declare simd simdlen(32) aligned(d) aligned(b)
18 // CHECK-NEXT: #pragma omp declare simd aligned(b: 64)
19 // CHECK-NEXT: void add_1(float *d, int s1, float *s2, double b[]) __attribute__((cold))
20 
21 #endif
22