blob: 213161364f5852b94b7252b7341bc026849b6443 [file] [log] [blame]
George Burgess IV92b43a42016-07-21 03:28:13 +00001// 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.
5void 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}