1 // RUN: %clang_cc1 -fsyntax-only -Wunused-variable -verify %s
2 template<typename T> void f() {
29 A(); // expected-warning{{expression result unused}}
37 int foo() __attribute__((warn_unused_result));
42 x.foo(); // expected-warning {{ignoring return value of function declared with warn_unused_result attribute}}
43 x2->foo(); // expected-warning {{ignoring return value of function declared with warn_unused_result attribute}}
50 void test_dependent_init(T *p) {