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


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

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