aboutsummaryrefslogtreecommitdiff
path: root/tests/core/test_tinyfuncstr.in
blob: fd1c9563a2b61d2053331a00893f996301c3eb1a (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>

struct Class {
  static char *name1() { return "nameA"; }
  char *name2() { return "nameB"; }
};

int main() {
  printf("*%s,%s*\n", Class::name1(), (new Class())->name2());
  return 0;
}