blob: 5cadd0038ce5d1bff598f9fbdbe8a477032423a6 [file] [log] [blame]
Alexey Bataev587e1de2016-03-30 10:43:55 +00001// 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
10#pragma omp declare simd
Alexey Bataev20dfd772016-04-04 10:12:15 +000011#pragma omp declare simd inbranch
12#pragma omp declare simd notinbranch
Alexey Bataev587e1de2016-03-30 10:43:55 +000013void add_1(float *d, float *s1, float *s2) __attribute__((cold));
14
Alexey Bataev20dfd772016-04-04 10:12:15 +000015// CHECK: #pragma omp declare simd notinbranch
16// CHECK-NEXT: #pragma omp declare simd inbranch
17// CHECK-NEXT: #pragma omp declare simd
Alexey Bataev587e1de2016-03-30 10:43:55 +000018// CHECK-NEXT: #pragma omp declare simd
19// CHECK-NEXT: void add_1(float *d, float *s1, float *s2) __attribute__((cold))
20
21#endif