Alexey Bataev | 587e1de | 2016-03-30 10:43:55 +0000 | [diff] [blame^] | 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 |
| 10 | #pragma omp declare simd |
| 11 | void add_1(float *d, float *s1, float *s2) __attribute__((cold)); |
| 12 | |
| 13 | // CHECK: #pragma omp declare simd |
| 14 | // CHECK-NEXT: #pragma omp declare simd |
| 15 | // CHECK-NEXT: void add_1(float *d, float *s1, float *s2) __attribute__((cold)) |
| 16 | |
| 17 | #endif |