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