1*92b43a46SGeorge Burgess IV // RUN: %clang_cc1 %s -verify -fsyntax-only -triple=i686-linux-gnu -std=c++11
2*92b43a46SGeorge Burgess IV 
3*92b43a46SGeorge Burgess IV // We crashed when we couldn't properly convert the first arg of __atomic_* to
4*92b43a46SGeorge Burgess IV // an lvalue.
PR28623()5*92b43a46SGeorge Burgess IV void PR28623() {
6*92b43a46SGeorge Burgess IV   void helper(int); // expected-note{{target}}
7*92b43a46SGeorge Burgess IV   void helper(char); // expected-note{{target}}
8*92b43a46SGeorge Burgess IV   __atomic_store_n(helper, 0, 0); // expected-error{{reference to overloaded function could not be resolved}}
9*92b43a46SGeorge Burgess IV }
10