void f() {
    std::move(a);
    a.foo();

    std::move(static_a);
    static_a.foo();
  }
Beispiel #2
0
int main()
   {
     int i = 42;

  // This forces A::foo(T) to be instantiated
     a.foo(i);
   }
void ignoreGlobalVariables() {
  std::move(global_a);
  global_a.foo();
}
Beispiel #4
0
int main()
{ 
    foo(); //Error 
    foo(2);
}
Beispiel #5
0
int main(){ c.foo(); }
Beispiel #6
0
int main() {
    aa.foo();
    a.foo();
}
int f() {
  return a.foo();
}
Beispiel #8
0
 constexpr int bar() { return a.foo(); } // { dg-error "foo" }
Beispiel #9
0
void F::foo () { B b = f->foo (); }
Beispiel #10
0
int main(){ a.foo(3); }
Beispiel #11
0
int main() {
    a.foo(3);    //Here is the error.
}