summaryrefslogtreecommitdiff
path: root/test/FrontendC++/2007-08-01-RestrictMethod.cpp
blob: feefaa1759c5660b04818ef4c2363e141e7ff3a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %llvmgxx -S %s -o - | grep noalias


class foo {
  int member[4];
  
  void bar(int * a);
  
};

void foo::bar(int * a) __restrict {
  member[3] = *a;
}