teak-llvm/clang/test/Misc/ast-print-pragmas-xfail.cpp
Alexander Kornienko 2a8c18d991 Fix typos in clang
Found via codespell -q 3 -I ../clang-whitelist.txt
Where whitelist consists of:

  archtype
  cas
  classs
  checkk
  compres
  definit
  frome
  iff
  inteval
  ith
  lod
  methode
  nd
  optin
  ot
  pres
  statics
  te
  thru

Patch by luzpaz! (This is a subset of D44188 that applies cleanly with a few
files that have dubious fixes reverted.)

Differential revision: https://reviews.llvm.org/D44188

llvm-svn: 329399
2018-04-06 15:14:32 +00:00

22 lines
569 B
C++

// RUN: %clang_cc1 %s -ast-print -o - | FileCheck %s
// FIXME: Test fails because attribute order is reversed by ParsedAttributes.
// XFAIL: *
void run1(int *List, int Length) {
int i = 0;
// CHECK: #pragma loop vectorize(4)
// CHECK-NEXT: #pragma loop interleave(8)
// CHECK-NEXT: #pragma loop vectorize(enable)
// CHECK-NEXT: #pragma loop interleave(enable)
#pragma loop vectorize(4)
#pragma loop interleave(8)
#pragma loop vectorize(enable)
#pragma loop interleave(enable)
// CHECK-NEXT: while (i < Length)
while (i < Length) {
List[i] = i;
i++;
}
}