summaryrefslogtreecommitdiff
path: root/tools/check-moz-style/tests/test5.cpp
blob: 95c75615158c7de0fcd8d6f9fff7ee98c74e2498 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// License bogus

// runtime/virtual
class ShouldHaveVirtualDes {
  virtual foo();
};

int main() {
  // runtime/memset
  memset(blah, sizeof(blah), 0);

  // runtime/rtti
  dynamic_cast<Derived*>(obj);

  // runtime/sizeof
  int varname = 0;
  int mySize = sizeof(int);

  // runtime/threadsafe_fn
  getpwuid();
  strtok();

  return 0;
}